mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
clippy: fix warnings in components/config* (#31562)
This commit is contained in:
parent
88033bd654
commit
ef3dad3a61
5 changed files with 20 additions and 21 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
use std::default::Default;
|
||||
use std::fs::{self, File};
|
||||
use std::io::{self, Read, Write};
|
||||
use std::io::Read;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::{RwLock, RwLockReadGuard};
|
||||
|
@ -385,7 +385,7 @@ pub enum OutputOptions {
|
|||
}
|
||||
|
||||
fn args_fail(msg: &str) -> ! {
|
||||
writeln!(io::stderr(), "{}", msg).unwrap();
|
||||
eprintln!("{}", msg);
|
||||
process::exit(1)
|
||||
}
|
||||
|
||||
|
@ -793,7 +793,7 @@ pub fn from_cmdline_args(mut opts: Options, args: &[String]) -> ArgumentParsingR
|
|||
set_pref!(layout.threads, layout_threads as i64);
|
||||
}
|
||||
|
||||
return ArgumentParsingResult::ChromeProcess(opt_match);
|
||||
ArgumentParsingResult::ChromeProcess(opt_match)
|
||||
}
|
||||
|
||||
pub enum ArgumentParsingResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue