Update rustfmt and reformat fbsource

Summary:
```
$ tools/third-party/rustfmt/rustfmt --version
rustfmt 1.4.11-nightly (1838235 2019-12-03)
```

Reviewed By: zertosh

Differential Revision: D19704678

fbshipit-source-id: fe8707e964495e76746edcb8b68e34fc1411f52a
This commit is contained in:
David Tolnay 2020-02-04 17:12:49 -08:00 committed by Facebook Github Bot
parent 5e9733d096
commit 34a520536a
5 changed files with 15 additions and 11 deletions

View File

@ -23,7 +23,6 @@ mod exceptions {
py_exception!(cliparser, OptionRequiresArgument);
py_exception!(cliparser, OptionArgumentInvalid);
py_exception!(cliparser, OptionAmbiguous);
}
pub fn init_module(py: Python, package: &str) -> PyResult<PyModule> {

View File

@ -93,5 +93,4 @@ mod tests {
let blackbox = singleton.deref_mut();
assert_eq!(all_entries(blackbox).len(), 3);
}
}

View File

@ -528,17 +528,25 @@ mod tests {
"aliasname echo -n a b"
);
assert_eq!(expand(
r#"cat /etc/mercurial/hgrc /etc/mercurial/hgrc.d/*.rc ~/.hgrc "`hg root`/.hg/hgrc" 2>/dev/null"#, vec![]),
r#"cat /etc/mercurial/hgrc /etc/mercurial/hgrc.d/*.rc ~/.hgrc "`hg root`/.hg/hgrc" 2>/dev/null"#);
assert_eq!(expand(
r#"for x in `hg log -r 'only(descendants(.) and bookmark(), master)' --template "{node}\n"`;
assert_eq!(
expand(
r#"cat /etc/mercurial/hgrc /etc/mercurial/hgrc.d/*.rc ~/.hgrc "`hg root`/.hg/hgrc" 2>/dev/null"#,
vec![]
),
r#"cat /etc/mercurial/hgrc /etc/mercurial/hgrc.d/*.rc ~/.hgrc "`hg root`/.hg/hgrc" 2>/dev/null"#
);
assert_eq!(
expand(
r#"for x in `hg log -r 'only(descendants(.) and bookmark(), master)' --template "{node}\n"`;
do echo "Changing to $(hg log -r $x -T '{rev} {desc|firstline}')" && hg up $x && $@;
if [ "$?" != "0" ]; then break; fi;
done"#, vec!["echo", "1"]),
done"#,
vec!["echo", "1"]
),
r#"for x in `hg log -r 'only(descendants(.) and bookmark(), master)' --template "{node}\n"`;
do echo "Changing to $(hg log -r $x -T '{rev} {desc|firstline}')" && hg up $x && echo 1;
if [ "$?" != "0" ]; then break; fi;
done"#);
done"#
);
}
}

View File

@ -712,5 +712,4 @@ Rebuilt Root log with 3 Root IDs."#
}
file.write_all(data).unwrap();
}
}

View File

@ -130,5 +130,4 @@ mod tests {
assert_eq!(v.capacity(), v.len());
assert_eq!(v, vec![6, 5, 4]);
}
}