diff --git a/Cargo.lock b/Cargo.lock index a6ac865..994f6a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -509,9 +509,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.137" +version = "0.2.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89" +checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" [[package]] name = "link-cplusplus" @@ -952,22 +952,18 @@ dependencies = [ [[package]] name = "sys-locale" -version = "0.2.3" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3358acbb4acd4146138b9bda219e904a6bb5aaaa237f8eed06f4d6bc1580ecee" +checksum = "e801cf239ecd6ccd71f03d270d67dd53d13e90aab208bf4b8fe4ad957ea949b0" dependencies = [ - "js-sys", "libc", - "wasm-bindgen", - "web-sys", - "winapi", ] [[package]] name = "sysinfo" -version = "0.26.7" +version = "0.29.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c375d5fd899e32847b8566e10598d6e9f1d9b55ec6de3cdf9e7da4bdc51371bc" +checksum = "0a18d114d420ada3a891e6bc8e96a2023402203296a47cdd65083377dad18ba5" dependencies = [ "cfg-if", "core-foundation-sys", diff --git a/Cargo.toml b/Cargo.toml index d4f2ac7..86375d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,5 +17,5 @@ tokio = { version = "1", features = ["full"] } ini = "1.3.0" exitcode = "1.1.2" hashmap = "0.0.1" -sysinfo = "0.26.7" -sys-locale = "0.2.3" +sysinfo = "0.29.10" +sys-locale = "0.3.1" diff --git a/src/mod_locales.rs b/src/mod_locales.rs index 414c343..b081d11 100644 --- a/src/mod_locales.rs +++ b/src/mod_locales.rs @@ -180,6 +180,6 @@ impl Locale { /// println!("{}", locale.t().exiting); /// ``` pub fn t(&self) -> &Lang { - return self.locale.borrow().clone(); + return self.locale.borrow(); } }