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")?;