]> git.lizzy.rs Git - rust.git/commitdiff
rustfmt
authorOwen Sanchez <pengowen816@gmail.com>
Sat, 11 Feb 2017 04:08:50 +0000 (21:08 -0700)
committerOwen Sanchez <pengowen816@gmail.com>
Sat, 11 Feb 2017 04:08:50 +0000 (21:08 -0700)
clippy_lints/src/large_enum_variant.rs

index 050362dede04ba3e2471c0b086ecb8f19c962e29..f656d513b516cb3d49f8f2af59d5261e3d7742f1 100644 (file)
@@ -114,7 +114,9 @@ fn check_item(&mut self, cx: &LateContext, item: &Item) {
     }
 }
 
-fn update_if<T, F>(old: &mut Option<T>, new: T, f: F) where F: Fn(&T, &T) -> bool {
+fn update_if<T, F>(old: &mut Option<T>, new: T, f: F)
+    where F: Fn(&T, &T) -> bool
+{
     if let Some(ref mut val) = *old {
         if f(val, &new) {
             *val = new;