v1 #23

Merged
cai merged 7 commits from v1 into master 2025-04-11 10:29:37 +03:00
3 changed files with 9 additions and 13 deletions
Showing only changes of commit b01a9f3828 - Show all commits

16
Cargo.lock generated
View File

@ -509,9 +509,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.137" version = "0.2.150"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89" checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c"
[[package]] [[package]]
name = "link-cplusplus" name = "link-cplusplus"
@ -952,22 +952,18 @@ dependencies = [
[[package]] [[package]]
name = "sys-locale" name = "sys-locale"
version = "0.2.3" version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3358acbb4acd4146138b9bda219e904a6bb5aaaa237f8eed06f4d6bc1580ecee" checksum = "e801cf239ecd6ccd71f03d270d67dd53d13e90aab208bf4b8fe4ad957ea949b0"
dependencies = [ dependencies = [
"js-sys",
"libc", "libc",
"wasm-bindgen",
"web-sys",
"winapi",
] ]
[[package]] [[package]]
name = "sysinfo" name = "sysinfo"
version = "0.26.7" version = "0.29.10"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c375d5fd899e32847b8566e10598d6e9f1d9b55ec6de3cdf9e7da4bdc51371bc" checksum = "0a18d114d420ada3a891e6bc8e96a2023402203296a47cdd65083377dad18ba5"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"core-foundation-sys", "core-foundation-sys",

View File

@ -17,5 +17,5 @@ tokio = { version = "1", features = ["full"] }
ini = "1.3.0" ini = "1.3.0"
exitcode = "1.1.2" exitcode = "1.1.2"
hashmap = "0.0.1" hashmap = "0.0.1"
sysinfo = "0.26.7" sysinfo = "0.29.10"
sys-locale = "0.2.3" sys-locale = "0.3.1"

View File

@ -180,6 +180,6 @@ impl Locale {
/// println!("{}", locale.t().exiting); /// println!("{}", locale.t().exiting);
/// ``` /// ```
pub fn t(&self) -> &Lang { pub fn t(&self) -> &Lang {
return self.locale.borrow().clone(); return self.locale.borrow();
} }
} }