EspressoSystems / EspressoSystems/atomicstore

Fails clippy on newer rust than 1.64

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

```
warning: the borrowed expression implements the required traits
--> src/atomic_store.rs:170:24
|
170 | ... fs::rename(&storage_path, &temp_path).context(StdIoDirOpsSnafu)?;
| ^^^^^^^^^^^^^ help: change this to: `storage_path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default

warning: the borrowed expression implements the required traits
--> src/atomic_store.rs:171:28
|
171 | fs::create_dir(&storage_path).context(StdIoDirOpsSnafu)?;
| ^^^^^^^^^^^^^ help: change this to: `storage_path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
--> src/atomic_store.rs:291:43
|
291 | ...h, &archived_file_path).context(StdIoDirOpsSnafu)?;
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `archived_file_path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: `atomic_store` (lib) generated 3 warnings (run `cargo clippy --fix --lib -p atomic_store` to apply 3 suggestions)
Finished dev [unoptimized + debuginfo] target(s) in 0.23s

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.