Skip to content

Commit c5c454c

Browse files
committed
Tests: fix clippy
1 parent 274e658 commit c5c454c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

crates/cargo-gpu/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ pub struct Cli {
170170
/// may fail if we can't find the user home directory
171171
#[inline]
172172
#[cfg(not(test))]
173+
#[expect(clippy::cfg_not_test, reason = "tests use different cache_dir")]
173174
pub fn cache_dir() -> anyhow::Result<std::path::PathBuf> {
174175
use anyhow::Context as _;
175176
Ok(directories::BaseDirs::new()

crates/cargo-gpu/src/spirv_source.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ pub enum SpirvSource {
4848
}
4949

5050
impl core::fmt::Display for SpirvSource {
51-
#[expect(
52-
clippy::min_ident_chars,
53-
reason = "It's a core library trait implementation"
54-
)]
5551
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
5652
match self {
5753
Self::CratesIO(version) => version.fmt(f),

0 commit comments

Comments
 (0)