Skip to content

Commit b59b049

Browse files
committed
Merge pull request #980 from DanielJCampbell/visibility
Changed modules & visitor mods to public, set filemap::write_file public
2 parents 6355814 + 4a2db3e commit b59b049

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/filemap.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ pub fn write_system_newlines<T>(writer: T,
8080
}
8181
}
8282

83-
fn write_file<T>(text: &StringBuffer,
84-
filename: &str,
85-
out: &mut T,
86-
config: &Config)
87-
-> Result<Option<String>, io::Error>
83+
pub fn write_file<T>(text: &StringBuffer,
84+
filename: &str,
85+
out: &mut T,
86+
config: &Config)
87+
-> Result<Option<String>, io::Error>
8888
where T: Write
8989
{
9090

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub use self::summary::Summary;
4949
mod utils;
5050
pub mod config;
5151
pub mod filemap;
52-
mod visitor;
52+
pub mod visitor;
5353
mod checkstyle;
5454
mod items;
5555
mod missed_spans;
@@ -61,7 +61,7 @@ mod issues;
6161
mod rewrite;
6262
mod string;
6363
mod comment;
64-
mod modules;
64+
pub mod modules;
6565
pub mod rustfmt_diff;
6666
mod chains;
6767
mod macros;

0 commit comments

Comments
 (0)