Skip to content
Open
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/bitreader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub struct BitReader<'a> {

impl BitReader<'_> {
#[inline]
pub const fn new(data: &[u8], bit_pos: usize) -> BitReader {
pub const fn new(data: &[u8], bit_pos: usize) -> BitReader<'_> {
BitReader { data, bit_pos }
}

Expand Down
2 changes: 1 addition & 1 deletion src/crunch/crn_decomp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl CrnHeader {
// }
// }

pub fn crnd_unpack_begin(p_data: &[u8], data_size: u32) -> Result<CrnUnpacker, &'static str> {
pub fn crnd_unpack_begin(p_data: &[u8], data_size: u32) -> Result<CrnUnpacker<'_>, &'static str> {
if data_size < CRNHEADER_MIN_SIZE as u32 {
return Err("Data size is below the minimum allowed.");
}
Expand Down
2 changes: 1 addition & 1 deletion src/unitycrunch/crn_decomp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::crnlib::CrnFormat;
use crate::crunch::crn_consts::*;
extern crate alloc;

pub fn crnd_unpack_begin(p_data: &[u8], data_size: u32) -> Result<CrnUnpacker, &'static str> {
pub fn crnd_unpack_begin(p_data: &[u8], data_size: u32) -> Result<CrnUnpacker<'_>, &'static str> {
if data_size < CRNHEADER_MIN_SIZE as u32 {
return Err("Data size is below the minimum allowed.");
}
Expand Down