Skip to content

Commit 045996a

Browse files
authored
Fix Rust 1.87.0 lints (#4249)
* Fix Rust 1.87.0 lints * disable wasm-opt * add wasm profile options
1 parent 4ee13e2 commit 045996a

File tree

17 files changed

+96
-98
lines changed

17 files changed

+96
-98
lines changed

cli/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,7 @@ fn main() -> Result<()> {
396396
Err(ReadlineError::Interrupted | ReadlineError::Eof) => break,
397397

398398
Ok(line) => {
399-
editor
400-
.add_history_entry(&line)
401-
.map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
399+
editor.add_history_entry(&line).map_err(io::Error::other)?;
402400

403401
if args.has_dump_flag() {
404402
if let Err(e) = dump(Source::from_bytes(&line), &args, &mut context) {

core/ast/src/module_item_list/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl ModuleItemList {
118118

119119
let mut names = Vec::new();
120120

121-
ExportedItemsVisitor(&mut names).visit_module_item_list(self);
121+
let _ = ExportedItemsVisitor(&mut names).visit_module_item_list(self);
122122

123123
names
124124
}
@@ -190,7 +190,7 @@ impl ModuleItemList {
190190

191191
let mut names = FxHashSet::default();
192192

193-
ExportedBindingsVisitor(&mut names).visit_module_item_list(self);
193+
let _ = ExportedBindingsVisitor(&mut names).visit_module_item_list(self);
194194

195195
names
196196
}
@@ -226,7 +226,7 @@ impl ModuleItemList {
226226

227227
let mut requests = IndexSet::default();
228228

229-
RequestsVisitor(&mut requests).visit_module_item_list(self);
229+
let _ = RequestsVisitor(&mut requests).visit_module_item_list(self);
230230

231231
requests
232232
}
@@ -291,7 +291,7 @@ impl ModuleItemList {
291291

292292
let mut entries = Vec::default();
293293

294-
ImportEntriesVisitor(&mut entries).visit_module_item_list(self);
294+
let _ = ImportEntriesVisitor(&mut entries).visit_module_item_list(self);
295295

296296
entries
297297
}
@@ -403,7 +403,7 @@ impl ModuleItemList {
403403

404404
let mut entries = Vec::default();
405405

406-
ExportEntriesVisitor(&mut entries).visit_module_item_list(self);
406+
let _ = ExportEntriesVisitor(&mut entries).visit_module_item_list(self);
407407

408408
entries
409409
}

0 commit comments

Comments
 (0)