diff options
| author | danieleades <33452915+danieleades@users.noreply.github.com> | 2023-11-27 10:18:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 11:18:48 +0100 |
| commit | 3c2b61ee7d312f034109522e90a411c9b920e011 (patch) | |
| tree | 842cc0df8c23cafdca6173569be7a5c561f29d0c | |
| parent | 2c85161a277a8b754eea529bd71fb0e67f39ac33 (diff) | |
Run clippy on all features (#2767)
| -rw-r--r-- | .github/workflows/ci.yml | 2 | ||||
| -rw-r--r-- | crates/typst-cli/src/update.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6743f86..4adaf5fa 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 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"))] |
