pub(super) fn read_file_at(path: &std::path::Path) -> Result<syn::File> {
    match std::fs::read_to_string(path) {
        Ok(content) => Ok(syn::parse_file(&content)?),
        Err(err) => Err(Error::Io(path.to_path_buf(), err)),
    }
}
/// Read and parse the file at the given `path` with `syn`, reporting any error.
Read and parse the file at the given `path` with `syn`, reporting any error.
Read and parse the file at the given ` path ` with ` syn ` reporting any error .
pub(super) fn read_file_at(path: &std::path::Path) -> Result<syn::File> {
    match std::fs::read_to_string(path) {
        Ok(content) => Ok(syn::parse_file(&content)?),
        Err(err) => Err(Error::Io(path.to_path_buf(), err)),
    }
}
pub ( super ) fn read_file_at ( path : & std :: path :: Path ) -> Result < syn :: File > { match std :: fs :: read_to_string ( path ) { Ok ( content ) => Ok ( syn :: parse_file ( & content ) ? ) , Err ( err ) => Err ( Error :: Io ( path . to_path_buf ( ) , err ) ) , } }
Read and parse the file at the given `path` with `syn`, reporting any error.
Read and parse the file at the given ` path ` with ` syn ` reporting any error .
path
&std::path::Path
path
&std::path::Path