Skip to content

Commit

Permalink
Fixes clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Dec 1, 2024
1 parent 1f6f06d commit 1953715
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion obfw/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod reader;
#[cfg(feature = "read")]
extern crate std;

pub const MAGIC: &'static [u8; 4] = b"\x7FOBF";
pub const MAGIC: &[u8; 4] = b"\x7FOBF";

/// Type of top-level item in the dump file.
#[repr(u8)]
Expand Down
2 changes: 1 addition & 1 deletion obfw/src/ps4/part.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl<'a, F: Read> PartReader<'a, F> {
&self.dev
}

pub fn next(&mut self) -> Result<Option<PartData>, PartError> {
pub fn next_item(&mut self) -> Result<Option<PartData>, PartError> {
// Read item type.
let mut ty = 0;

Expand Down
2 changes: 1 addition & 1 deletion obfw/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl<F: Read> DumpReader<F> {
Ok(Self(file))
}

pub fn next(&mut self) -> Result<Option<ItemReader<F>>, ReaderError> {
pub fn next_item(&mut self) -> Result<Option<ItemReader<F>>, ReaderError> {
// Read item type.
let mut ty = 0u8;

Expand Down

0 comments on commit 1953715

Please sign in to comment.