mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
address some new clippy lints
This commit is contained in:
parent
73584cd992
commit
dd99059218
2 changed files with 3 additions and 1 deletions
|
@ -1337,6 +1337,7 @@ mod test {
|
||||||
// .unwrap()
|
// .unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::borrowed_box)]
|
||||||
async fn upload_download(ctx: &Box<dyn TestContext>) -> Result<()> {
|
async fn upload_download(ctx: &Box<dyn TestContext>) -> Result<()> {
|
||||||
let mut col1 = ctx.col1();
|
let mut col1 = ctx.col1();
|
||||||
col1_setup(&mut col1);
|
col1_setup(&mut col1);
|
||||||
|
@ -1371,6 +1372,7 @@ mod test {
|
||||||
// Regular syncs
|
// Regular syncs
|
||||||
/////////////////////
|
/////////////////////
|
||||||
|
|
||||||
|
#[allow(clippy::borrowed_box)]
|
||||||
async fn regular_sync(ctx: &Box<dyn TestContext>) -> Result<()> {
|
async fn regular_sync(ctx: &Box<dyn TestContext>) -> Result<()> {
|
||||||
// add a deck
|
// add a deck
|
||||||
let mut col1 = ctx.col1();
|
let mut col1 = ctx.col1();
|
||||||
|
|
|
@ -115,7 +115,7 @@ mod test {
|
||||||
|
|
||||||
// tag children are also cleared when clearing their parent
|
// tag children are also cleared when clearing their parent
|
||||||
col.storage.clear_all_tags()?;
|
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.register_tag(&mut Tag::new(name.to_string(), Usn(0)))?;
|
||||||
}
|
}
|
||||||
col.remove_tags("a")?;
|
col.remove_tags("a")?;
|
||||||
|
|
Loading…
Reference in a new issue