Skip to content

Commit

Permalink
style: 🎨 reorder imports with separated std imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sehnryr committed Feb 2, 2024
1 parent a800721 commit 33a7031
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 deletions.
5 changes: 3 additions & 2 deletions src/audio/extract.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use std::io::Write;
use std::path::PathBuf;

use anyhow::{Error, Ok, Result};
use log::debug;
use lotus_lib::toc::{FileNode, Node};
use std::io::Write;
use std::path::PathBuf;

use crate::audio::header::{AudioCompressionFormat, AudioHeader};
use crate::audio::ogg::{get_segment_table, OggPage};
Expand Down
3 changes: 2 additions & 1 deletion src/shell/command/cd.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::path::PathBuf;

use anyhow::{Error, Result};
use clap::Parser;
use std::path::PathBuf;

use crate::shell::{error::PathNotFound, State};
use crate::utils::path::normalize_path;
Expand Down
3 changes: 2 additions & 1 deletion src/shell/command/find.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use std::path::PathBuf;

use anyhow::{Error, Result};
use clap::Parser;
use lotus_lib::toc::{DirectoryNode, Node, NodeKind as LotusNodeKind};
use std::path::PathBuf;

use crate::shell::{error::PathNotFound, State};
use crate::utils::path::normalize_path;
Expand Down
3 changes: 2 additions & 1 deletion src/shell/command/get.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use std::path::PathBuf;

use anyhow::{Error, Result};
use clap::Parser;
use log::{debug, info, warn};
use lotus_lib::toc::{DirectoryNode, Node, NodeKind};
use std::path::PathBuf;

use crate::audio::extract as extract_audio;
use crate::metadata::{FileType, Metadata};
Expand Down
3 changes: 2 additions & 1 deletion src/shell/command/stat.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::path::PathBuf;

use anyhow::{Error, Result};
use clap::Parser;
use std::path::PathBuf;

use crate::metadata::Metadata;
use crate::shell::{error::PathNotFound, State};
Expand Down
7 changes: 4 additions & 3 deletions src/texture/extract.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use anyhow::Result;
use std::fs::File;
use std::io::{Seek, SeekFrom, Write};
use std::path::PathBuf;

use log::debug;
use lotus_lib::cache_pair::CachePair;
use lotus_lib::compression::{decompress_post_ensmallening, get_block_lengths};
use lotus_lib::toc::{FileNode, Node};
use std::fs::File;
use std::io::{Seek, SeekFrom, Write};
use std::path::PathBuf;

use crate::metadata::Metadata;
use crate::shell::State;
Expand Down
3 changes: 2 additions & 1 deletion src/texture/header.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use std::cmp::max;

use anyhow::{Error, Result};
use ddsfile::{
AlphaMode, D3D10ResourceDimension, DxgiFormat, FourCC, Header, Header10, PixelFormatFlags,
};
use derivative::Derivative;
use std::cmp::max;

use crate::metadata::Metadata;

Expand Down

0 comments on commit 33a7031

Please sign in to comment.