Skip to content

Commit 923e3fb

Browse files
committed
fix: resolve pre-existing clippy warnings
1 parent 3cc78ec commit 923e3fb

File tree

3 files changed

+6
-6
lines changed
  • crates
    • pixi_build_backend_passthrough/src
    • pixi_command_dispatcher/src

3 files changed

+6
-6
lines changed

crates/pixi_build_backend_passthrough/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ fn generate_variant_combinations(
275275
variant_values
276276
.iter()
277277
.map(|(key, _)| key)
278-
.zip(combination.into_iter())
278+
.zip(combination)
279279
.map(|(key, value)| (key.clone(), value.clone()))
280280
.collect()
281281
})
@@ -515,7 +515,7 @@ mod tests {
515515

516516
#[test]
517517
fn test_is_star_requirement_with_no_version() {
518-
let spec = PackageSpecV1::Binary(Box::new(BinaryPackageSpecV1::default()));
518+
let spec = PackageSpecV1::Binary(Box::default());
519519

520520
assert!(is_star_requirement(&spec));
521521
}

crates/pixi_command_dispatcher/src/solve_conda/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ fn unique_dev_source_url(dev_source: &pixi_record::DevSourceRecord) -> Url {
338338
pairs.append_pair("name", dev_source.name.as_source());
339339

340340
for (key, value) in &dev_source.variants {
341-
pairs.append_pair(&format!("_{}", key), &value);
341+
pairs.append_pair(&format!("_{}", key), value);
342342
}
343343

344344
drop(pairs);

crates/pixi_command_dispatcher/src/solve_pixi/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ impl PixiEnvironmentSpec {
303303

304304
/// Returns an iterator over all dependencies from dev source records,
305305
/// excluding packages that are themselves dev sources.
306-
fn dev_source_dependencies<'a>(
307-
dev_source_records: &'a [pixi_record::DevSourceRecord],
308-
) -> impl Iterator<Item = (rattler_conda_types::PackageName, PixiSpec)> + 'a {
306+
fn dev_source_dependencies(
307+
dev_source_records: &[pixi_record::DevSourceRecord],
308+
) -> impl Iterator<Item = (rattler_conda_types::PackageName, PixiSpec)> + '_ {
309309
use std::collections::HashSet;
310310

311311
// Collect all dev source package names to filter them out

0 commit comments

Comments
 (0)