diff --git a/Cargo.toml b/Cargo.toml index 7b93cabe1..0fd3d690e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ hex = "0.4.0" hmac = "~0.7.1" lazy_static = "1.4.0" md-5 = "0.8.0" -os_info = { version = "2.0.6", default-features = false } +os_info = { version = "3.0.1", default-features = false } percent-encoding = "2.0.0" rand = { version = "0.7.2", features = ["small_rng"] } serde_with = "1.3.1" diff --git a/src/cmap/establish/handshake/mod.rs b/src/cmap/establish/handshake/mod.rs index d4a9293b4..aef3db711 100644 --- a/src/cmap/establish/handshake/mod.rs +++ b/src/cmap/establish/handshake/mod.rs @@ -120,7 +120,7 @@ lazy_static! { if info.os_type() != Type::Unknown { let version = info.version(); - if *version != Version::unknown() { + if *version != Version::Unknown { metadata.os.version = Some(info.version().to_string()); } }