Skip to content

Commit

Permalink
🚨 Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicks96432 committed Jan 11, 2024
1 parent 44ca839 commit 4d2f0ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extract/src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::io::{Read, Seek, SeekFrom};
use byteorder::{BigEndian, ReadBytesExt};
use rabex::read_ext::ReadUrexExt;

#[derive(Debug)]
#[derive(Debug, Default)]
pub struct Environment {
/// resource data that loaded from bundles
resources: HashMap<String, Vec<u8>>,
Expand All @@ -16,7 +16,7 @@ pub struct Environment {

impl Environment {
pub fn new() -> Self {
Self { resources: HashMap::new(), objects: HashMap::new() }
Self::default()
}

pub fn register_cab(&mut self, path: &str, buf: Vec<u8>) {
Expand Down

0 comments on commit 4d2f0ff

Please sign in to comment.