Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
caizixian committed Sep 9, 2023
1 parent 54ca8bc commit b75ee74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
members = [
"notegraf",
"notegraf-web"
]
]

resolver = "2"
2 changes: 1 addition & 1 deletion notegraf/src/notestore/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ impl<T: NoteType> InMemoryStoreInner<T> {
tags.insert(tag.clone());
}
}
Ok(Vec::from_iter(tags.into_iter()))
Ok(Vec::from_iter(tags))
}

fn backup<P: AsRef<Path>>(&self, path: P) -> Result<(), NoteStoreError> {
Expand Down
2 changes: 1 addition & 1 deletion notegraf/src/notestore/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub async fn populate_test_data(store: &BoxedNoteStore<MarkdownNote>) {
"## Code testing\n`inline code`\n```python\na = [1, 2, 3, 4]\nfor n in a:\n print(n)\n```\n".into(),
NoteMetadataEditable {
tags: Some(HashSet::from_iter(
vec!["tag1".to_owned(), "tag2".to_owned()].iter().cloned(),
["tag1".to_owned(), "tag2".to_owned()].iter().cloned(),
)),
custom_metadata: None
},
Expand Down

0 comments on commit b75ee74

Please sign in to comment.