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

Fix clippy::needless_borrow #110

Merged
merged 1 commit into from
May 12, 2022
Merged

Fix clippy::needless_borrow #110

merged 1 commit into from
May 12, 2022

Conversation

jzeuzs
Copy link
Contributor

@jzeuzs jzeuzs commented May 12, 2022

❯ cargo clippy
    Checking nixpacks v0.0.10 (/home/tomio/projects/nixpacks)
warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> src/providers/deno.rs:66:60
   |
66 |         let relative_path_to_index = app.strip_source_path(&path_to_index)?;
   |                                                            ^^^^^^^^^^^^^^ help: change this to: `path_to_index`
   |
   = note: `#[warn(clippy::needless_borrow)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: `nixpacks` (lib) generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 0.96s

This PR fixes this error.

@coffee-cup coffee-cup merged commit 53abc2f into railwayapp:main May 12, 2022
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

Successfully merging this pull request may close these issues.

2 participants