remove deprecated members

This commit is contained in:
postscriptum 2025-07-03 12:32:14 +03:00
parent d01c109f22
commit 037a5bfe74

View file

@ -96,19 +96,18 @@ fn sync(snac: &Snac, nex: &Nex) -> Result<Response> {
(post.published, post.updated), (post.published, post.updated),
)?; )?;
use nex::response::change::Change; use nex::response::change::Change;
let f = ""; //response.file.to_string_lossy();
match response.change { match response.change {
Change::Created => { Change::Created => {
r.created += 1; r.created += 1;
println!("\t\t\tcreate new post file `{f}`.") println!("\t\t\tcreate new post file.")
} }
Change::Ignored => { Change::Ignored => {
r.ignored += 1; r.ignored += 1;
println!("\t\t\tpost file `{f}` is up to date.") println!("\t\t\tpost file is up to date.")
} }
Change::Updated => { Change::Updated => {
r.updated += 1; r.updated += 1;
println!("\t\t\tpost file `{f}` update with new content.") println!("\t\t\tpost file update with new content.")
} }
} }
if let Some(ref mut k) = keep if let Some(ref mut k) = keep