1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

chores: run cargo +1.40.0 fmt

Apparently fmt from 1.40.0 is a bit more strict in some places

Let me know if this is worthwhile merging :)
This commit is contained in:
ReggaeMuffin 2021-04-02 10:56:49 +01:00
parent de6aa69259
commit 2eb32d845e
No known key found for this signature in database
GPG key ID: B7A56D7FE881B7C5
13 changed files with 94 additions and 95 deletions

2
Cargo.lock generated
View file

@ -2181,7 +2181,7 @@ dependencies = [
name = "uu_relpath" name = "uu_relpath"
version = "0.0.4" version = "0.0.4"
dependencies = [ dependencies = [
"getopts", "clap",
"uucore", "uucore",
"uucore_procs", "uucore_procs",
] ]

View file

@ -80,7 +80,8 @@ fn print_version() {
fn print_usage(opts: &Options) { fn print_usage(opts: &Options) {
let brief = "Run COMMAND, with modified buffering operations for its standard streams\n \ let brief = "Run COMMAND, with modified buffering operations for its standard streams\n \
Mandatory arguments to long options are mandatory for short options too."; Mandatory arguments to long options are mandatory for short options too.";
let explanation = "If MODE is 'L' the corresponding stream will be line buffered.\n \ let explanation =
"If MODE is 'L' the corresponding stream will be line buffered.\n \
This option is invalid with standard input.\n\n \ This option is invalid with standard input.\n\n \
If MODE is '0' the corresponding stream will be unbuffered.\n\n \ If MODE is '0' the corresponding stream will be unbuffered.\n\n \
Otherwise MODE is a number which may be followed by one of the following:\n\n \ Otherwise MODE is a number which may be followed by one of the following:\n\n \

View file

@ -135,9 +135,7 @@ impl CmdResult {
pub fn tmpd(&self) -> Rc<TempDir> { pub fn tmpd(&self) -> Rc<TempDir> {
match &self.tmpd { match &self.tmpd {
Some(ptr) => ptr.clone(), Some(ptr) => ptr.clone(),
None => { None => panic!("Command not associated with a TempDir"),
panic!("Command not associated with a TempDir")
}
} }
} }