Read Overlay header

This commit is contained in:
Jaby
2022-12-06 02:31:05 +01:00
parent 4025ce8318
commit 54a460b514
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)
},