fn read_file(file_path: &str) -> String {
    let mut file = File::open(file_path).unwrap();
    let mut buf = vec![];
    file.read_to_end(&mut buf).unwrap();
    String::from_utf8_lossy(&buf).to_string()
}
// ideally this should be async
/// A function to read lossy files and serve it as a html response
///
/// # Arguments
///
/// * `file_path` - The file path that we want the function to read
///
ideally this should be async
A function to read lossy files and serve it as a html response
ideally this should be async A function to read lossy files and serve it as a html response
fn read_file(file_path: &str) -> String {
    let mut file = File::open(file_path).unwrap();
    let mut buf = vec![];
    file.read_to_end(&mut buf).unwrap();
    String::from_utf8_lossy(&buf).to_string()
}
fn read_file ( file_path : & str ) -> String { let mut file = File :: open ( file_path ) . unwrap ( ) ; let mut buf = vec ! [ ] ; file . read_to_end ( & mut buf ) . unwrap ( ) ; String :: from_utf8_lossy ( & buf ) . to_string ( ) }
ideally this should be async
A function to read lossy files and serve it as a html response
ideally this should be async A function to read lossy files and serve it as a html response
file_path
&str
file_path
&str