]> git.lizzy.rs Git - rust.git/commitdiff
Privatize `unindent` function.
authorCorey Farwell <coreyf@rwell.org>
Sun, 25 Sep 2016 19:03:09 +0000 (15:03 -0400)
committerCorey Farwell <coreyf@rwell.org>
Sun, 25 Sep 2016 19:04:01 +0000 (15:04 -0400)
Doesn't look like it's used anywhere outside the module.

src/librustdoc/passes.rs

index c60e22824965f97248cee5444111f0b20758c88d..92f24ce099b6d874c5e72b3542581a19cf5bf671 100644 (file)
@@ -290,7 +290,7 @@ fn fold_item(&mut self, mut i: Item) -> Option<Item> {
     krate
 }
 
-pub fn unindent(s: &str) -> String {
+fn unindent(s: &str) -> String {
     let lines = s.lines().collect::<Vec<&str> >();
     let mut saw_first_line = false;
     let mut saw_second_line = false;