mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-01 05:29:05 +02:00
Fix clippy warnings
This commit is contained in:
parent
daa188eb1d
commit
3cdafa7be9
3 changed files with 8 additions and 6 deletions
|
@ -12,7 +12,7 @@ struct Args {
|
|||
fn main() -> Result<()> {
|
||||
let args = Args::parse();
|
||||
|
||||
let value: fastnbt::Value = minedmap::io::data::from_file(&args.file)?;
|
||||
let value: fastnbt::Value = minedmap::io::data::from_file(args.file.as_path())?;
|
||||
println!("{:#x?}", value);
|
||||
|
||||
Ok(())
|
||||
|
|
|
@ -12,7 +12,9 @@ struct Args {
|
|||
fn main() -> Result<()> {
|
||||
let args = Args::parse();
|
||||
|
||||
minedmap::io::region::from_file(&args.file)?.foreach_chunk(|coords, value: fastnbt::Value| {
|
||||
println!("Chunk {:?}: {:#x?}", coords, value);
|
||||
})
|
||||
minedmap::io::region::from_file(args.file.as_path())?.foreach_chunk(
|
||||
|coords, value: fastnbt::Value| {
|
||||
println!("Chunk {:?}: {:#x?}", coords, value);
|
||||
},
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue