]> git.lizzy.rs Git - rust.git/commitdiff
Changed modules & visitor mods to public, set filemap::write_file public
authorDaniel Campbell <campbelldj@hotmail.com>
Fri, 6 May 2016 00:20:38 +0000 (12:20 +1200)
committerDaniel Campbell <campbelldj@hotmail.com>
Fri, 6 May 2016 00:44:18 +0000 (12:44 +1200)
src/filemap.rs
src/lib.rs

index c6af9a7018486b15e0563773cab147a2946566ef..64c892a092973caf96fb0e6290da60435f63dff8 100644 (file)
@@ -80,11 +80,11 @@ pub fn write_system_newlines<T>(writer: T,
     }
 }
 
-fn write_file<T>(text: &StringBuffer,
-                 filename: &str,
-                 out: &mut T,
-                 config: &Config)
-                 -> Result<Option<String>, io::Error>
+pub fn write_file<T>(text: &StringBuffer,
+                     filename: &str,
+                     out: &mut T,
+                     config: &Config)
+                     -> Result<Option<String>, io::Error>
     where T: Write
 {
 
index 942fdb06994c7f54447ad4c4b0b78aba82538ef8..b825059ee208e91e9157c247a51f22de13b19f33 100644 (file)
@@ -49,7 +49,7 @@
 mod utils;
 pub mod config;
 pub mod filemap;
-mod visitor;
+pub mod visitor;
 mod checkstyle;
 mod items;
 mod missed_spans;
@@ -61,7 +61,7 @@
 mod rewrite;
 mod string;
 mod comment;
-mod modules;
+pub mod modules;
 pub mod rustfmt_diff;
 mod chains;
 mod macros;