Skip to content

Fix build and flake update - #167

Open
renesat wants to merge 1 commit into
oppiliappan:masterfrom
renesat:fix-build
Open

Fix build and flake update#167
renesat wants to merge 1 commit into
oppiliappan:masterfrom
renesat:fix-build

Conversation

@renesat

@renesat renesat commented Jul 26, 2026

Copy link
Copy Markdown

Fix build for new nixpkgs:

...
    Checking statix v0.5.8 (/build/source/bin)
error: redundant reference in `println!` argument
  --> bin/src/fix.rs:76:36
   |
76 |                     println!("{}", &src);
   |                                    ^^^^ help: remove the redundant `&`: `src`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_borrows_in_formatting
   = note: `-D clippy::useless-borrows-in-formatting` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::useless_borrows_in_formatting)]`

error: redundant reference in `format!` argument
   --> bin/src/fix.rs:102:54
    |
102 |                 let new_file = format!("{} [fixed]", &path);
    |                                                      ^^^^^ help: remove the redundant `&`: `path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_borrows_in_formatting

error: redundant reference in `println!` argument
   --> bin/src/fix.rs:115:32
    |
115 |                 println!("{}", &src);
    |                                ^^^^ help: remove the redundant `&`: `src`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_borrows_in_formatting

error: could not compile `statix` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...

@mightyiam

Copy link
Copy Markdown
Collaborator

Hey. This repo is not maintained. My fork is https://github.com/molybdenumsoftware/statix and I want to merge it back to original:
https://tangled.org/oppi.li/statix/issues/1

@mightyiam

Copy link
Copy Markdown
Collaborator

But, thank you for your contribution. I've just made an addition to the readme to reduce the chances that this occurs again. #168.

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