Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #3

Open
aadilayub opened this issue Sep 22, 2022 · 0 comments
Open

Compilation error #3

aadilayub opened this issue Sep 22, 2022 · 0 comments

Comments

@aadilayub
Copy link

aadilayub commented Sep 22, 2022

I got an error while running make install telling me the script was using a flag that is only supported on cargo nightly, so I ran rustup default nightly and ran make install again. This time I got this error:

pop-launcher-plugin-duckduckgo-bangs on  master is 📦 v0.1.0 via 🦀 v1.66.0-nightly 
❯ make install
cargo fmt -- --check && cargo clippy -- -Dwarnings
   Compiling proc-macro2 v1.0.29
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.76
   Compiling fnv v1.0.7
   Compiling ident_case v1.0.1
   Compiling strsim v0.10.0
   Compiling serde_derive v1.0.130
   Compiling futures-core v0.3.17
   Compiling serde v1.0.130
   Compiling memchr v2.4.1
    Checking cache-padded v1.1.1
   Compiling rustversion v1.0.5
   Compiling libc v0.2.102
   Compiling ryu v1.0.5
    Checking concurrent-queue v1.2.2
    Checking waker-fn v1.1.0
    Checking pin-project-lite v0.2.7
   Compiling serde_json v1.0.67
    Checking parking v2.0.0
    Checking fastrand v1.5.0
    Checking futures-io v0.3.17
    Checking event-listener v2.5.1
    Checking async-task v4.0.3
    Checking futures-lite v1.12.0
    Checking async-channel v1.6.1
   Compiling quote v1.0.9
    Checking once_cell v1.8.0
    Checking atomic-waker v1.0.0
    Checking itoa v0.4.8
    Checking urlencoding v2.1.0
   Compiling const_format_proc_macros v0.2.20
    Checking dirs-sys v0.3.6
    Checking blocking v1.0.2
    Checking dirs v4.0.0
    Checking const_format v0.2.20
   Compiling darling_core v0.13.0
   Compiling darling_macro v0.13.0
   Compiling darling v0.13.0
   Compiling serde_with_macros v1.5.0
    Checking serde_with v1.10.0
    Checking pop-launcher v1.0.1
    Checking pop-launcher-plugin-duckduckgo-bangs v0.1.0 (/home/aadil/code/pop-launcher-plugin-duckduckgo-bangs)
error: the borrowed expression implements the required traits
  --> src/config.rs:28:53
   |
28 |         if let Ok(string) = std::fs::read_to_string(&db_path) {
   |                                                     ^^^^^^^^ help: change this to: `db_path`
   |
   = note: `-D clippy::needless-borrow` implied by `-D warnings`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

error: could not compile `pop-launcher-plugin-duckduckgo-bangs` due to previous error
make: *** [Makefile:11: test] Error 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant