Skip to content

Commit

Permalink
format lints
Browse files Browse the repository at this point in the history
  • Loading branch information
CraZySacX committed Oct 10, 2022
1 parent dad72cd commit 3e9e68f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Expand Up @@ -21,7 +21,7 @@ impl fmt::Display for ErrKind {
Self::Protocol => "protocol",
Self::Env => "env",
};
write!(f, "{}", err_kind)
write!(f, "{err_kind}")
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/feature/rustc.rs
Expand Up @@ -174,7 +174,7 @@ pub(crate) fn configure_rustc(instructions: &Instructions, config: &mut Config)
add_entry(
config.cfg_map_mut(),
VergenKey::RustcLlvmVersion,
Some(format!("{}", llvmver)),
Some(format!("{llvmver}")),
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/feature/si.rs
Expand Up @@ -197,7 +197,7 @@ pub(crate) fn configure_sysinfo(instructions: &Instructions, config: &mut Config
add_entry(
config.cfg_map_mut(),
VergenKey::SysinfoMemory,
Some(format!("{} {}", curr_memory, suffix(count))),
Some(format!("{curr_memory} {}", suffix(count))),
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/gen.rs
Expand Up @@ -95,7 +95,7 @@ where
{
// Generate the 'cargo:' instruction output
for (k, v) in config.cfg_map().iter().filter_map(some_vals) {
writeln!(stdout, "cargo:rustc-env={}={}", k.name(), v)?;
writeln!(stdout, "cargo:rustc-env={}={v}", k.name())?;
}

// Add the HEAD path to cargo:rerun-if-changed
Expand All @@ -110,7 +110,7 @@ where

// Emit a cargo:warning if a section was skipped over
for w in config.warnings() {
writeln!(stdout, "cargo:warning={}", w)?;
writeln!(stdout, "cargo:warning={w}")?;
}

Ok(())
Expand Down

0 comments on commit 3e9e68f

Please sign in to comment.