Closed sleeplessKomodo closed 6 months ago
Similar issue while compiling from Git through cargo
on Windows, except with one more error:
error[E0382]: use of moved value: `text`
--> src\ascii.rs:80:8
|
78 | let mut text = buffer.i...
| -------- move occurs because `text` has type `Text<'_>`, which does not implement the `Copy` trait
79 | text.patch_style(Style:...
| ---- value moved here
80 | Ok(text)
| ^^^^ value used here after move
|
help: consider cloning the value if the performance cost is acceptable
|
79 | text.clone().patch_style(Style::default().fg(color));
| ++++++++
Fixed in #310 thanks to @FantasyTeddy.
Describe the bug
To Reproduce Steps to reproduce the behaviour:
$ cargo build
success
$ cargo run
success
$ cargo install --path .
no success
Expected behaviour I expected it to install without errors, since I can run the program just fine.
System Information
rust v1.75
(I assume I could just copy the executable from the debug location to my systems' path, but this error would still be unexplained now wouldn't it?)