diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-09-12 13:01:59 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-09-12 13:01:59 +0900 |
| commit | 82f2204fc8e2c21d0d58733931a12e883db46749 (patch) | |
| tree | 89bba51f044d83a92a2b3bea01a658f8aaf1168c /crates | |
| parent | dae53fa80ef757fecbb6f6eb22e12146b391e6d1 (diff) | |
| download | php-shirabe-82f2204fc8e2c21d0d58733931a12e883db46749.tar.gz php-shirabe-82f2204fc8e2c21d0d58733931a12e883db46749.tar.zst php-shirabe-82f2204fc8e2c21d0d58733931a12e883db46749.zip | |
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/shirabe/src/factory.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/factory.rs b/crates/shirabe/src/factory.rs index 8c696b1f..47b203f0 100644 --- a/crates/shirabe/src/factory.rs +++ b/crates/shirabe/src/factory.rs @@ -113,7 +113,7 @@ impl Factory { let appdata = Platform::get_env("APPDATA").unwrap_or_default(); return Ok(format!( "{}/Shirabe", - trim(&strtr(&appdata, "\\", "/"), Some("/")) + rtrim(&strtr(&appdata, "\\", "/"), Some("/")) )); } @@ -162,7 +162,7 @@ impl Factory { cache_dir = format!("{}/cache", home); } - return Ok(trim(&strtr(&cache_dir, "\\", "/"), Some("/"))); + return Ok(rtrim(&strtr(&cache_dir, "\\", "/"), Some("/"))); } let user_dir = Self::get_user_dir()?; @@ -1579,7 +1579,7 @@ impl Factory { .to_string()).into()); } - Ok(trim(&strtr(&home, "\\", "/"), Some("/"))) + Ok(rtrim(&strtr(&home, "\\", "/"), Some("/"))) } fn validate_json_schema( |
