diff options
Diffstat (limited to 'crates/typst-cli/src/update.rs')
| -rw-r--r-- | crates/typst-cli/src/update.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-cli/src/update.rs b/crates/typst-cli/src/update.rs index 3cd65c9d..cde77dbb 100644 --- a/crates/typst-cli/src/update.rs +++ b/crates/typst-cli/src/update.rs @@ -226,7 +226,7 @@ fn update_needed(release: &Release) -> StrResult<bool> { fn backup_path() -> StrResult<PathBuf> { #[cfg(target_os = "linux")] let root_backup_dir = dirs::state_dir() - .or_else(|| dirs::data_dir()) + .or_else(dirs::data_dir) .ok_or("unable to locate local data or state directory")?; #[cfg(not(target_os = "linux"))] |
