Skip to content

Commit b099279

Browse files
build(deps): bump whoami from 1.6.1 to 2.0.2 (#1081)
1 parent 5680b59 commit b099279

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

Cargo.lock

Lines changed: 23 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ironrdp-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ transport = { git = "https://github.com/Devolutions/devolutions-gateway", rev =
7777
futures-util = { version = "0.3", features = ["sink"] }
7878

7979
# Utils
80-
whoami = "1.6"
80+
whoami = "2.0"
8181
anyhow = "1"
8282
smallvec = "1.15"
8383
tap = "1"

crates/ironrdp-client/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,14 @@ impl Config {
442442
.map_or(0, |version| version.major * 100 + version.minor * 10 + version.patch)
443443
.pipe(u32::try_from)
444444
.context("cargo package version")?,
445-
client_name: whoami::fallible::hostname().unwrap_or_else(|_| "ironrdp".to_owned()),
445+
client_name: whoami::hostname().unwrap_or_else(|_| "ironrdp".to_owned()),
446446
// NOTE: hardcode this value like in freerdp
447447
// https://github.com/FreeRDP/FreeRDP/blob/4e24b966c86fdf494a782f0dfcfc43a057a2ea60/libfreerdp/core/settings.c#LL49C34-L49C70
448448
client_dir: "C:\\Windows\\System32\\mstscax.dll".to_owned(),
449449
platform: match whoami::platform() {
450450
whoami::Platform::Windows => MajorPlatformType::WINDOWS,
451451
whoami::Platform::Linux => MajorPlatformType::UNIX,
452-
whoami::Platform::MacOS => MajorPlatformType::MACINTOSH,
452+
whoami::Platform::Mac => MajorPlatformType::MACINTOSH,
453453
whoami::Platform::Ios => MajorPlatformType::IOS,
454454
whoami::Platform::Android => MajorPlatformType::ANDROID,
455455
_ => MajorPlatformType::UNSPECIFIED,

0 commit comments

Comments
 (0)