Skip to content

Commit c1ac763

Browse files
authored
Merge pull request #895 from cgwalters/fix-misc-warnings
ext: Fix a few lints
2 parents 56e2862 + e0c627e commit c1ac763

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

ostree-ext/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,6 @@ features = ["dox"]
6969
docgen = ["clap_mangen"]
7070
dox = ["ostree/dox"]
7171
internal-testing-api = ["xshell", "indoc", "similar-asserts"]
72+
73+
[lints]
74+
workspace = true

ostree-ext/src/container/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ impl ImageImporter {
617617
let commit_layer = commit_layer.map(query).transpose()?;
618618
let component_layers = component_layers
619619
.into_iter()
620-
.map(|l| query(l))
620+
.map(query)
621621
.collect::<Result<Vec<_>>>()?;
622622
let remaining_layers = remaining_layers
623623
.into_iter()

ostree-ext/src/fixture.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ pub struct NonOstreeFixture {
906906
}
907907

908908
impl NonOstreeFixture {
909-
const SRCOCI: &str = "src/oci";
909+
const SRCOCI: &'static str = "src/oci";
910910

911911
#[context("Initializing fixture")]
912912
pub fn new_base() -> Result<Self> {

0 commit comments

Comments
 (0)