Skip to content

Commit c2d886d

Browse files
committed
make Install and InstalledBackend #[non_exhaustive]
1 parent 409ecfd commit c2d886d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

crates/cargo-gpu/src/install.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ use std::path::{Path, PathBuf};
1212

1313
/// Represents a functional backend installation, whether it was cached or just installed.
1414
#[derive(Clone, Debug)]
15-
#[expect(
16-
clippy::exhaustive_structs,
17-
reason = "never adding private members to this struct"
18-
)]
15+
#[non_exhaustive]
1916
pub struct InstalledBackend {
2017
/// path to the `rustc_codegen_spirv` dylib
2118
pub rustc_codegen_spirv_location: PathBuf,
@@ -66,10 +63,7 @@ impl InstalledBackend {
6663
reason = "cmdline args have many bools"
6764
)]
6865
#[derive(clap::Parser, Debug, Clone, serde::Deserialize, serde::Serialize)]
69-
#[expect(
70-
clippy::exhaustive_structs,
71-
reason = "never adding private members to this struct"
72-
)]
66+
#[non_exhaustive]
7367
pub struct Install {
7468
/// Directory containing the shader crate to compile.
7569
#[clap(long, default_value = "./")]

0 commit comments

Comments
 (0)