address some new clippy lints

This commit is contained in:
Damien Elmes 2021-03-27 19:28:13 +10:00
parent 73584cd992
commit dd99059218
2 changed files with 3 additions and 1 deletions

View File

@ -1337,6 +1337,7 @@ mod test {
// .unwrap()
}
#[allow(clippy::borrowed_box)]
async fn upload_download(ctx: &Box<dyn TestContext>) -> 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<dyn TestContext>) -> Result<()> {
// add a deck
let mut col1 = ctx.col1();

View File

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