Read Overlay header
This commit is contained in:
@@ -162,8 +162,8 @@ pub fn input_to_vec(input: Input) -> Result<Vec<u8>, Error> {
|
||||
Ok(data)
|
||||
}
|
||||
|
||||
pub fn read_file(file_path: PathBuf) -> Result<Vec<u8>, Error> {
|
||||
match std::fs::read(&file_path) {
|
||||
pub fn read_file(file_path: &PathBuf) -> Result<Vec<u8>, Error> {
|
||||
match std::fs::read(file_path) {
|
||||
Ok(data) => {
|
||||
Ok(data)
|
||||
},
|
||||
|
Reference in New Issue
Block a user