Read Overlay header

This commit is contained in:
2022-12-06 02:31:05 +01:00
parent 1e0dc0f6f5
commit 9a337a1aa0
7 changed files with 61 additions and 10 deletions

View File

@@ -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)
},