refactor: avoid Box::new syntax, prefer into()

This commit is contained in:
VC
2022-11-14 14:25:08 +01:00
parent 01bac63fb9
commit 9c14636735

View File

@@ -87,7 +87,7 @@ pub fn migrate_db(d: &str, s: &str) -> Result<(), Box<dyn Error>> {
match res {
Err(e) => match e.to_string().as_str() {
"duplicate column name: twitter_screen_name" => Ok(()),
_ => Err(Box::new(e)),
_ => Err(e.into()),
},
_ => Ok(()),
}