Clippy optimizations

This commit is contained in:
ChristianVisintin
2020-12-16 16:35:11 +01:00
parent 65c541ff2a
commit 562a1b3ae8
4 changed files with 59 additions and 24 deletions

View File

@@ -228,7 +228,7 @@ impl AuthActivity {
// Prepare paths
let mut bookmarks_file: PathBuf = path.clone();
bookmarks_file.push("bookmarks.toml");
let mut key_file: PathBuf = path.clone();
let mut key_file: PathBuf = path;
key_file.push(".bookmarks.key"); // key file is hidden
// Initialize client
match BookmarksClient::new(bookmarks_file.as_path(), key_file.as_path()) {