fpl_rs 0.1.2

An api wrapper for fantasy premier league.
Documentation
use core::fmt;


#[derive(Debug)]
pub struct FplError {
    msg: String,
}

impl fmt::Display for FplError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "FplError: {}", self.msg)
    }
}

impl From<&str> for FplError {
    fn from(item: &str) -> Self {
        FplError {
            msg: item.to_string(),
        }
    }
}