From 8ac86ffcb4de2dd9102862a125c1a24ddfa04a18 Mon Sep 17 00:00:00 2001 From: ZTL-UwU Date: Sun, 24 Dec 2023 01:16:46 +0800 Subject: [PATCH] chore: remove println --- api/src/process.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/src/process.rs b/api/src/process.rs index ed67435..1a8eace 100644 --- a/api/src/process.rs +++ b/api/src/process.rs @@ -55,7 +55,6 @@ pub async fn update_feature_names(sep_text: &[&str], db: &DbConn) -> Result<(), let mut found = false; for name in &mut names { if name.name == *word { - println!("{} {}", word, name.df); found = true; if let Err(e) = Mutation::update_name(db, &name.name, name.df + 1).await { return Err(e); @@ -70,7 +69,11 @@ pub async fn update_feature_names(sep_text: &[&str], db: &DbConn) -> Result<(), return Err(e); } // dummy indicator to avoid the same word being added repeatedly - names.push(entity::name::Model { id: 0, name: String::from(*word), df: 1 }); + names.push(entity::name::Model { + id: 0, + name: String::from(*word), + df: 1, + }); } }