From 7aec5d5045d41e0659c480e9b467d5cafc72d4f7 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 5 Nov 2022 12:17:40 +0100 Subject: [PATCH 1/2] Fix needless borrow lint --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 47c8409..bf4fca8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -118,7 +118,7 @@ fn hoc(repo: &str, repo_dir: &str, cache_dir: &str, branch: &str) -> Result<(u64 "-M".to_string(), "--diff-filter=ACDM".to_string(), ]; - let cache = CacheState::read_from_file(&cache_dir, branch, &head)?; + let cache = CacheState::read_from_file(cache_dir, branch, &head)?; match &cache { CacheState::Current { count, commits, .. } => { info!("Using cache"); From afc357c0257b66c4d0374d59309af22fadf6a881 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 5 Nov 2022 12:20:28 +0100 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86c8a31..6d87fd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Updated [`serde_json`](https://github.com/serde-rs/json) from 1.0.86 to 1.0.87 ([#510]) * Updated [`serde`](https://github.com/serde-rs/serde) from 1.0.145 to 1.0.147 ([#512]) * Updated [tracing-actix-web](https://github.com/LukeMathWalker/tracing-actix-web) from 0.6.1 to 0.6.2 ([#513]) +* Fix clippy lint `needless-borrow` ([#514]) [#511]: https://github.com/vbrandl/hoc/pull/511 [#510]: https://github.com/vbrandl/hoc/pull/510 [#512]: https://github.com/vbrandl/hoc/pull/512 [#513]: https://github.com/vbrandl/hoc/pull/513 +[#514]: https://github.com/vbrandl/hoc/pull/514 ## [0.26.0] 2022-10-03