diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6743f867..4adaf5fa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - run: cargo clippy --workspace --all-targets + - run: cargo clippy --workspace --all-targets --all-features - run: cargo fmt --check --all - run: cargo doc --workspace --no-deps diff --git a/crates/typst-cli/src/update.rs b/crates/typst-cli/src/update.rs index 3cd65c9d7..cde77dbbe 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 { fn backup_path() -> StrResult { #[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"))]