diff --git a/repak/src/error.rs b/repak/src/error.rs index edbad69..3eff562 100644 --- a/repak/src/error.rs +++ b/repak/src/error.rs @@ -23,8 +23,8 @@ pub enum Error { Magic(u32), #[error("used version {used} but pak is version {version}")] Version { - used: super::Version, - version: super::Version, + used: super::VersionMajor, + version: super::VersionMajor, }, #[error("pak is encrypted but no key was provided")] Encrypted, diff --git a/repak/src/footer.rs b/repak/src/footer.rs index c8746f8..e3280ac 100644 --- a/repak/src/footer.rs +++ b/repak/src/footer.rs @@ -62,8 +62,8 @@ impl Footer { } if version.version_major() != footer.version_major { return Err(super::Error::Version { - used: version, - version: footer.version, + used: version.version_major(), + version: footer.version_major, }); } Ok(footer)