MQKOX2CQ7AON24UJC7RORAC7Y2UROROVG7BBKLVWURPXKY75JV5AC
5JMYBRF3UYX4LFH7JK6S4BEDKRVKDFIL4YKTCWKMKP4TMNNGQFKQC
XIHPYOWDLQY2MVMVUQPH23O3TBALRG4G2CHSLWSCAYMY5NVJ32WQC
UIMZBURR7KOWSREO4GDH5C2LZDUTEZBKQNYWBYSFGUTRYJ4GKSNQC
76TBVFPIFU3LSMXY5NAHZBH6HRJLSLK43PGOPL6QQ2YYVBJ64QAQC
let mut state = State::new();
let mut state = State::new().expect( ".subscription file couldn't be parsed...I probably changed the format...sorry", );
let mut state = State::new().expect(
".subscription file couldn't be parsed...I probably changed the format...sorry",
);
} else { let mut file = File::create(&path).unwrap(); file.write_all(b"auto_download_limit: 1").unwrap();
} else {
let mut file = File::create(&path).unwrap();
file.write_all(b"auto_download_limit: 1").unwrap();
pub fn new() -> State {
pub fn new() -> Result<State, serde_json::Error> {
DirBuilder::new().recursive(true).create(&path).unwrap();
let mut state: State = serde_json::from_str(&s).unwrap();
let mut state: State = serde_json::from_str(&s)?;
state
Ok(state)
State {
Ok(State {
}
})