clippy
This commit is contained in:
+6
-8
@@ -681,15 +681,13 @@ impl VM {
|
|||||||
BoundKind::Tuple { elements } => {
|
BoundKind::Tuple { elements } => {
|
||||||
// If the current value at offset is a Tuple or Record, we dive into it.
|
// If the current value at offset is a Tuple or Record, we dive into it.
|
||||||
// Otherwise, we assume the sequence was already flattened (e.g. by Specializer).
|
// Otherwise, we assume the sequence was already flattened (e.g. by Specializer).
|
||||||
if let Some(val) = values.get(*offset) {
|
if let Some(sub_values) = values.get(*offset).and_then(|v| v.as_slice()) {
|
||||||
if let Some(sub_values) = val.as_slice() {
|
*offset += 1;
|
||||||
*offset += 1;
|
let mut sub_offset = 0;
|
||||||
let mut sub_offset = 0;
|
for el in elements {
|
||||||
for el in elements {
|
self.unpack(el, sub_values, &mut sub_offset)?;
|
||||||
self.unpack(el, sub_values, &mut sub_offset)?;
|
|
||||||
}
|
|
||||||
return Ok(());
|
|
||||||
}
|
}
|
||||||
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
for el in elements {
|
for el in elements {
|
||||||
|
|||||||
+2
-2
@@ -72,7 +72,7 @@ pub fn run_benchmarks(update: bool) -> Vec<BenchmarkResult> {
|
|||||||
|
|
||||||
for entry in entries.filter_map(|e| e.ok()) {
|
for entry in entries.filter_map(|e| e.ok()) {
|
||||||
let path = entry.path();
|
let path = entry.path();
|
||||||
if !path.extension().is_some_and(|ext| ext == "myc") {
|
if path.extension().is_none_or(|ext| ext != "myc") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,7 +143,7 @@ pub fn run_benchmarks(update: bool) -> Vec<BenchmarkResult> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if results.last().map_or(false, |r| r.name == name) {
|
if results.last().is_some_and(|r| r.name == name) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user