Skip to content

Commit

Permalink
ext: Fix a few lints
Browse files Browse the repository at this point in the history
- Wire up to workspace lint standards
- Fix a few remaining clippy lints

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Nov 11, 2024
1 parent 5ae8b6b commit e0c627e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ostree-ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ features = ["dox"]
docgen = ["clap_mangen"]
dox = ["ostree/dox"]
internal-testing-api = ["xshell", "indoc", "similar-asserts"]

[lints]
workspace = true
2 changes: 1 addition & 1 deletion ostree-ext/src/container/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Result<Vec<_>>>()?;
let remaining_layers = remaining_layers
.into_iter()
Expand Down
2 changes: 1 addition & 1 deletion ostree-ext/src/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self> {
Expand Down

0 comments on commit e0c627e

Please sign in to comment.