Skip to content

Commit

Permalink
Style cleanups (#320)
Browse files Browse the repository at this point in the history
#clippy
  • Loading branch information
sourcefrog authored Apr 7, 2024
2 parents 0962202 + dba2cab commit 14aac3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/fnvalue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ fn known_map(path: &Path) -> Option<(&Ident, &Type, &Type)> {
{
// TODO: Skip lifetime args.
// TODO: Return the path with args stripped out.
if let Some((GenericArgument::Type(key_type), GenericArgument::Type(value_type))) =
if let Some((GenericArgument::Type(ref key_type), GenericArgument::Type(ref value_type))) =
args.iter().collect_tuple()
{
return Some((&last.ident, &key_type, &value_type));
return Some((&last.ident, key_type, value_type));
}
}
None
Expand Down
2 changes: 1 addition & 1 deletion src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl LockFile {
LockFile {
cargo_mutants_version: crate::VERSION.to_string(),
start_time,
hostname: whoami::hostname(),
hostname: whoami::fallible::hostname().unwrap_or_default(),
username: whoami::username(),
}
}
Expand Down

0 comments on commit 14aac3e

Please sign in to comment.