]> piware.de Git - learn-rust.git/commitdiff
Return style fix
authorMartin Pitt <martin@piware.de>
Tue, 24 Aug 2021 04:53:24 +0000 (06:53 +0200)
committerMartin Pitt <martin@piware.de>
Tue, 24 Aug 2021 04:53:24 +0000 (06:53 +0200)
src/word_utils.rs

index 4da2eb0f147aa37eb3f9338510ed595444181fe6..e3e71bf135ae753c218a2dc72d10bfee2d425f85 100644 (file)
@@ -15,7 +15,7 @@ pub fn second_word(s: &str) -> Option<&str> {
         }
     }
 
-    return None;
+    None
 }
 
 #[cfg(test)]