fix(file_store): rm lifetime from FileError

The lifetime on the error needed to be the same as the input magic bytes
which was annoying.
This commit is contained in:
志宇
2024-01-26 00:39:59 +09:00
parent 07116df541
commit 5611c9e42a
2 changed files with 6 additions and 6 deletions

View File

@@ -94,7 +94,7 @@ where
if magic_buf != magic {
return Err(FileError::InvalidMagicBytes {
got: magic_buf,
expected: magic,
expected: magic.to_vec(),
});
}