Eat dogfood
This commit is contained in:
parent
ac5e9c8d26
commit
40ce05654b
@ -34,7 +34,7 @@ pub fn run(port: u16, lint: Option<&str>) -> ! {
|
||||
// Give some time for python to start
|
||||
thread::sleep(Duration::from_millis(500));
|
||||
// Launch browser after first export.py has completed and http.server is up
|
||||
let _ = opener::open(url);
|
||||
let _result = opener::open(url);
|
||||
});
|
||||
}
|
||||
thread::sleep(Duration::from_millis(1000));
|
||||
|
@ -160,7 +160,7 @@ impl<'tcx> LateLintPass<'tcx> for MacroUseImports {
|
||||
let found_idx = self.mac_refs.iter().position(|mac| import.ends_with(&mac.name));
|
||||
|
||||
if let Some(idx) = found_idx {
|
||||
let _ = self.mac_refs.remove(idx);
|
||||
self.mac_refs.remove(idx);
|
||||
let seg = import.split("::").collect::<Vec<_>>();
|
||||
|
||||
match seg.as_slice() {
|
||||
|
@ -195,7 +195,7 @@ mod tests {
|
||||
#[should_panic]
|
||||
fn fix_without_unstable() {
|
||||
let args = "cargo clippy --fix".split_whitespace().map(ToString::to_string);
|
||||
let _ = ClippyCmd::new(args);
|
||||
ClippyCmd::new(args);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user