ea
ea copied to clipboard
Fix compilation error
When trying to compile ea to test https://github.com/dduan/ea/pull/64 I also got the following error
Compiling ea-command v0.2.1 (/home/djm/src/ea)
error: the borrowed expression implements the required traits
--> src/archive.rs:38:21
|
38 | fs::write(path, &data)
| ^^^^^ help: change this to: `data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
error: could not compile `ea-command` (lib) due to previous error
This PR fixes the error.
Possibly this PR isn't needed, but only https://github.com/dduan/ea/pull/64. At least in nixpkgs it's working with just that one, and without this one (https://github.com/NixOS/nixpkgs/pull/247493).