Skip to content

Commit f320e80

Browse files
committed
chore: clippy + winnow 0.7
1 parent 5a1f7a0 commit f320e80

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

crates/compilers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ futures-util = { workspace = true, optional = true }
3737
tokio = { workspace = true, optional = true }
3838

3939
auto_impl = "1"
40-
winnow = "0.6"
40+
winnow = "0.7"
4141
dyn-clone = "1"
4242
derive_more = { version = "1", features = ["debug"] }
4343
home = "0.5"

crates/compilers/src/compilers/solc/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ impl CompilerSettings for SolcSettings {
342342
let SolcRestrictions { evm_version, via_ir, optimizer_runs, bytecode_hash } = restrictions;
343343

344344
satisfies &= evm_version.satisfies(self.evm_version);
345-
satisfies &= via_ir.map_or(true, |via_ir| via_ir == self.via_ir.unwrap_or_default());
346-
satisfies &= bytecode_hash.map_or(true, |bytecode_hash| {
345+
satisfies &= via_ir.is_none_or(|via_ir| via_ir == self.via_ir.unwrap_or_default());
346+
satisfies &= bytecode_hash.is_none_or(|bytecode_hash| {
347347
self.metadata.as_ref().and_then(|m| m.bytecode_hash) == Some(bytecode_hash)
348348
});
349349
satisfies &= optimizer_runs.satisfies(self.optimizer.runs);

crates/compilers/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -866,10 +866,10 @@ fn rebase_path(base: &Path, path: &Path) -> PathBuf {
866866

867867
if Some(path_component) != base_component {
868868
if base_component.is_some() {
869-
new_path.extend(
870-
std::iter::repeat(std::path::Component::ParentDir)
871-
.take(base_components.count() + 1),
872-
);
869+
new_path.extend(std::iter::repeat_n(
870+
std::path::Component::ParentDir,
871+
base_components.count() + 1,
872+
));
873873
}
874874

875875
new_path.push(path_component);

0 commit comments

Comments
 (0)