Update rustfmt to 0.9.0.

This commit is contained in:
Dan Gohman
2017-08-31 10:44:59 -07:00
parent 46fb64cbb4
commit 2efdc0ed37
111 changed files with 4692 additions and 3379 deletions

View File

@@ -7,7 +7,8 @@
///
/// Returns the number of elements where `p(t)` is true.
pub fn partition_slice<'a, T: 'a, F>(s: &'a mut [T], mut p: F) -> usize
where F: FnMut(&T) -> bool
where
F: FnMut(&T) -> bool,
{
// Count the length of the prefix where `p` returns true.
let mut count = match s.iter().position(|t| !p(t)) {