ea icon indicating copy to clipboard operation
ea copied to clipboard

Fix compilation error

Open deejayem opened this issue 2 years ago • 1 comments

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.

deejayem avatar Jul 03 '23 12:07 deejayem

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).

deejayem avatar Aug 10 '23 11:08 deejayem