diff --git a/src/main.rs b/src/main.rs index 392ee91..8ef73c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,6 @@ mod tree; use std::collections::HashSet; use std::fs::{remove_dir_all, remove_file, File}; -use std::io::BufReader; use std::path::PathBuf; use std::{ffi::OsString, fs::read_dir}; @@ -195,9 +194,8 @@ async fn update_subscribers(_request: Request) -> http_types::Result = serde_json::from_reader(reader)?; + let str = std::fs::read(file_path.clone())?; + let val: HashSet = serde_json::from_slice(&str)?; println!("{:#?}", val); let to_do = ¤t - &val; println!("They will be notified for: {:#?}", to_do); @@ -209,6 +207,7 @@ async fn update_subscribers(_request: Request) -> http_types::Result