Skip to content

Commit 40ce056

Browse files
committed
Eat dogfood
1 parent ac5e9c8 commit 40ce056

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clippy_dev/src/serve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn run(port: u16, lint: Option<&str>) -> ! {
3434
// Give some time for python to start
3535
thread::sleep(Duration::from_millis(500));
3636
// Launch browser after first export.py has completed and http.server is up
37-
let _ = opener::open(url);
37+
let _result = opener::open(url);
3838
});
3939
}
4040
thread::sleep(Duration::from_millis(1000));

clippy_lints/src/macro_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl<'tcx> LateLintPass<'tcx> for MacroUseImports {
160160
let found_idx = self.mac_refs.iter().position(|mac| import.ends_with(&mac.name));
161161

162162
if let Some(idx) = found_idx {
163-
let _ = self.mac_refs.remove(idx);
163+
self.mac_refs.remove(idx);
164164
let seg = import.split("::").collect::<Vec<_>>();
165165

166166
match seg.as_slice() {

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ mod tests {
195195
#[should_panic]
196196
fn fix_without_unstable() {
197197
let args = "cargo clippy --fix".split_whitespace().map(ToString::to_string);
198-
let _ = ClippyCmd::new(args);
198+
ClippyCmd::new(args);
199199
}
200200

201201
#[test]

0 commit comments

Comments
 (0)