1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Merge pull request #2006 from reggaemuffin/fmt-1.40.0

chores: run `cargo +1.40.0 fmt`
This commit is contained in:
Sylvestre Ledru 2021-04-02 17:11:54 +02:00 committed by GitHub
commit a1b8996ef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 94 additions and 95 deletions

2
Cargo.lock generated
View file

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

View file

@ -80,7 +80,8 @@ fn print_version() {
fn print_usage(opts: &Options) {
let brief = "Run COMMAND, with modified buffering operations for its standard streams\n \
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 \
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 \

View file

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