From dd9905921814b4310d5df469c0ab9c388b47f7ac Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 27 Mar 2021 19:28:13 +1000 Subject: [PATCH] address some new clippy lints --- rslib/src/sync/mod.rs | 2 ++ rslib/src/tags/remove.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rslib/src/sync/mod.rs b/rslib/src/sync/mod.rs index 24b3aea80..101703b6e 100644 --- a/rslib/src/sync/mod.rs +++ b/rslib/src/sync/mod.rs @@ -1337,6 +1337,7 @@ mod test { // .unwrap() } + #[allow(clippy::borrowed_box)] async fn upload_download(ctx: &Box) -> Result<()> { let mut col1 = ctx.col1(); col1_setup(&mut col1); @@ -1371,6 +1372,7 @@ mod test { // Regular syncs ///////////////////// + #[allow(clippy::borrowed_box)] async fn regular_sync(ctx: &Box) -> Result<()> { // add a deck let mut col1 = ctx.col1(); diff --git a/rslib/src/tags/remove.rs b/rslib/src/tags/remove.rs index b56e73d27..0c736281c 100644 --- a/rslib/src/tags/remove.rs +++ b/rslib/src/tags/remove.rs @@ -115,7 +115,7 @@ mod test { // tag children are also cleared when clearing their parent col.storage.clear_all_tags()?; - for name in vec!["a", "a::b", "A::b::c"] { + for name in &["a", "a::b", "A::b::c"] { col.register_tag(&mut Tag::new(name.to_string(), Usn(0)))?; } col.remove_tags("a")?;