Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ use crate::{
};

/// The four bytes 'GVAS' appear at the beginning of every GVAS file.
pub const FILE_TYPE_GVAS: u32 = u32::from_le_bytes([b'G', b'V', b'A', b'S']);
pub const FILE_TYPE_GVAS: u32 = u32::from_le_bytes(*b"GVAS");

/// Stores information about GVAS file, engine version, etc.
#[derive(Debug, Clone, PartialEq, Eq)]
Expand Down
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl From<Guid> for u128 {
impl Debug for Guid {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let guid = self.to_string();
write!(f, "Guid({})", &guid)
write!(f, "Guid({})", guid)
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/gvas_tests/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn test_unexpected_eof() {
}
}

const INVALID_HEADER: [u8; 4] = [b'G', b'V', b'A', b'Z'];
const INVALID_HEADER: [u8; 4] = *b"GVAZ";

#[test]
fn test_invalid_header() {
Expand Down
Loading