Merge pull request #514 from vbrandl/fix/clippy-needless-borrow
All checks were successful
continuous-integration/drone/push Build is passing

Fix needless borrow lint
This commit is contained in:
Valentin Brandl 2022-11-05 12:31:33 +01:00 committed by GitHub
commit f6b48c6ac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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_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 [`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]) * 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 [#511]: https://github.com/vbrandl/hoc/pull/511
[#510]: https://github.com/vbrandl/hoc/pull/510 [#510]: https://github.com/vbrandl/hoc/pull/510
[#512]: https://github.com/vbrandl/hoc/pull/512 [#512]: https://github.com/vbrandl/hoc/pull/512
[#513]: https://github.com/vbrandl/hoc/pull/513 [#513]: https://github.com/vbrandl/hoc/pull/513
[#514]: https://github.com/vbrandl/hoc/pull/514
## [0.26.0] 2022-10-03 ## [0.26.0] 2022-10-03

View File

@ -118,7 +118,7 @@ fn hoc(repo: &str, repo_dir: &str, cache_dir: &str, branch: &str) -> Result<(u64
"-M".to_string(), "-M".to_string(),
"--diff-filter=ACDM".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 { match &cache {
CacheState::Current { count, commits, .. } => { CacheState::Current { count, commits, .. } => {
info!("Using cache"); info!("Using cache");