fn read_file_to_string<T: FileSystem, P: AsRef<Path>>(fs: &T, path: P) -> io::Result<String> {
    let mut reader = fs.open(path)?;
    let mut result = vec![];
    reader.read_to_end(&mut result)?;
    String::from_utf8(result)
        .map_err(|_| io::Error::new(ErrorKind::InvalidData, "Invalid Data"))
}
// Used to be part of the public API.
// Keep around for the tests.
Used to be part of the public API.
Keep around for the tests.
Used to be part of the public API . Keep around for the tests .
fn read_file_to_string<T: FileSystem, P: AsRef<Path>>(fs: &T, path: P) -> io::Result<String> {
    let mut reader = fs.open(path)?;
    let mut result = vec![];
    reader.read_to_end(&mut result)?;
    String::from_utf8(result)
        .map_err(|_| io::Error::new(ErrorKind::InvalidData, "Invalid Data"))
}
fn read_file_to_string < T : FileSystem , P : AsRef < Path > > ( fs : & T , path : P ) -> io :: Result < String > { let mut reader = fs . open ( path ) ? ; let mut result = vec ! [ ] ; reader . read_to_end ( & mut result ) ? ; String :: from_utf8 ( result ) . map_err ( | _ | io :: Error :: new ( ErrorKind :: InvalidData , " " ) ) }
Used to be part of the public API.
Used to be part of the public API .
fs
&T
path
P