Skip to content

Commit

Permalink
🚨 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicks96432 committed Feb 4, 2025
1 parent 3253c7d commit a03bed2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/bin/mltd/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async fn extract_assets(
) -> Result<(), Error> {
for info in &infos {
match info.entry.1.as_str() {
"TextAsset" => extract_text_asset(&info, asset_ripper, args).await?,
"TextAsset" => extract_text_asset(info, asset_ripper, args).await?,

// Texture2D requires all relavent Sprite infos to be extracted
"Texture2D" => {
Expand Down
10 changes: 4 additions & 6 deletions src/mltd/extract/puzzle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ pub fn solve_puzzle(
.get(i * piece_count + j)
.ok_or(Error::Puzzle(String::from("piece not found")))?;

let mut piece =
img.crop_imm(piece.offsets().0, piece.offsets().1, piece.width(), piece.height()).flipv();
let mut piece = img
.crop_imm(piece.offsets().0, piece.offsets().1, piece.width(), piece.height())
.flipv();

match puzzle.pieces[j].rotate {
90 => piece = piece.rotate90(),
Expand Down Expand Up @@ -101,10 +102,7 @@ fn piece_map(puzzle_name: &str) -> Option<Puzzle> {
"card_big" => Some(Puzzle {
width: 1280,
height: 720,
pieces: vec![
Piece { x: 0, y: 0, rotate: 0 },
Piece { x: 1022, y: 0, rotate: 270 },
],
pieces: vec![Piece { x: 0, y: 0, rotate: 0 }, Piece { x: 1022, y: 0, rotate: 270 }],
img_count: 1,
}),
_ => None,
Expand Down

0 comments on commit a03bed2

Please sign in to comment.