Skip to content

Commit

Permalink
cargo: update whoami dependency to 1.5.0
Browse files Browse the repository at this point in the history
This requires a code tweak to avoid clippy failures, as `whoami` 1.5.0 has
deprecated the default `hostname()` function.

Signed-off-by: Austin Seipp <[email protected]>
  • Loading branch information
thoughtpolice committed Mar 5, 2024
1 parent 2817e30 commit bd55109
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl UserSettings {
pub fn operation_hostname(&self) -> String {
self.config
.get_string("operation.hostname")
.unwrap_or_else(|_| whoami::hostname())
.unwrap_or_else(|_| whoami::fallible::hostname().expect("valid hostname"))
}

pub fn operation_username(&self) -> String {
Expand Down

0 comments on commit bd55109

Please sign in to comment.