diff --git a/ostree-ext/Cargo.toml b/ostree-ext/Cargo.toml index 2d1d400d..290b4222 100644 --- a/ostree-ext/Cargo.toml +++ b/ostree-ext/Cargo.toml @@ -69,3 +69,6 @@ features = ["dox"] docgen = ["clap_mangen"] dox = ["ostree/dox"] internal-testing-api = ["xshell", "indoc", "similar-asserts"] + +[lints] +workspace = true diff --git a/ostree-ext/src/container/store.rs b/ostree-ext/src/container/store.rs index 2d9efafd..3938199c 100644 --- a/ostree-ext/src/container/store.rs +++ b/ostree-ext/src/container/store.rs @@ -617,7 +617,7 @@ impl ImageImporter { let commit_layer = commit_layer.map(query).transpose()?; let component_layers = component_layers .into_iter() - .map(|l| query(l)) + .map(query) .collect::>>()?; let remaining_layers = remaining_layers .into_iter() diff --git a/ostree-ext/src/fixture.rs b/ostree-ext/src/fixture.rs index 790b54a5..9231a273 100644 --- a/ostree-ext/src/fixture.rs +++ b/ostree-ext/src/fixture.rs @@ -906,7 +906,7 @@ pub struct NonOstreeFixture { } impl NonOstreeFixture { - const SRCOCI: &str = "src/oci"; + const SRCOCI: &'static str = "src/oci"; #[context("Initializing fixture")] pub fn new_base() -> Result {