Skip to content

Commit

Permalink
fix unused variable warnings on windows
Browse files Browse the repository at this point in the history
On windows the function doesn't use all variables. Use cfg_attr to
allow unused_variables.
  • Loading branch information
dsp committed Feb 17, 2024
1 parent b611fa8 commit 4fcf897
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rye/src/cli/rye.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ fn perform_install(
}

/// Add rye to the users path.
#[cfg_attr(windows, allow(unused_variables))]
fn add_rye_to_path(mode: &InstallMode, shims: &Path, ask: bool) -> Result<(), Error> {
let rye_home = env::var("RYE_HOME")
.map(Cow::Owned)
Expand Down

0 comments on commit 4fcf897

Please sign in to comment.