Fix clippy warnings
This commit is contained in:
10
src/files.rs
10
src/files.rs
@@ -345,8 +345,8 @@ mod tests {
|
||||
let tag2 = tag_dao.create_tag("tag2").unwrap();
|
||||
let tag3 = tag_dao.create_tag("tag3").unwrap();
|
||||
|
||||
&tag_dao.tag_file("test.jpg", tag1.id).unwrap();
|
||||
&tag_dao.tag_file("test.jpg", tag3.id).unwrap();
|
||||
let _ = &tag_dao.tag_file("test.jpg", tag1.id).unwrap();
|
||||
let _ = &tag_dao.tag_file("test.jpg", tag3.id).unwrap();
|
||||
|
||||
let mut files = HashMap::new();
|
||||
files.insert(
|
||||
@@ -390,11 +390,11 @@ mod tests {
|
||||
let mut tag_dao = SqliteTagDao::new(in_memory_db_connection());
|
||||
|
||||
let tag1 = tag_dao.create_tag("tag1").unwrap();
|
||||
let tag2 = tag_dao.create_tag("tag2").unwrap();
|
||||
let _tag2 = tag_dao.create_tag("tag2").unwrap();
|
||||
let tag3 = tag_dao.create_tag("tag3").unwrap();
|
||||
|
||||
&tag_dao.tag_file("test.jpg", tag1.id).unwrap();
|
||||
&tag_dao.tag_file("test.jpg", tag3.id).unwrap();
|
||||
let _ = &tag_dao.tag_file("test.jpg", tag1.id).unwrap();
|
||||
let _ = &tag_dao.tag_file("test.jpg", tag3.id).unwrap();
|
||||
|
||||
// Should get filtered since it doesn't have tag3
|
||||
tag_dao.tag_file("some-other.jpg", tag1.id).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user