Run clippy on all features (#2767)
This commit is contained in:
parent
2c85161a27
commit
3c2b61ee7d
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
@ -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"))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user