automatic cargo CI changes

This commit is contained in:
Gitea CI 2024-01-16 10:33:21 +00:00
parent 3f59e99b88
commit 66932f70a3
2 changed files with 8 additions and 8 deletions

View File

@ -18,11 +18,7 @@ use libpt::{hedu::*, log::*};
use clap::Parser; use clap::Parser;
use clap_verbosity_flag::{InfoLevel, Verbosity}; use clap_verbosity_flag::{InfoLevel, Verbosity};
use std::{ use std::{fs::File, io::BufReader, path::PathBuf};
fs::File,
io::{BufRead, BufReader},
path::PathBuf,
};
//// TYPES ///////////////////////////////////////////////////////////////////////////////////////// //// TYPES /////////////////////////////////////////////////////////////////////////////////////////
@ -86,7 +82,7 @@ fn main() {
std::process::exit(1); std::process::exit(1);
} }
}; };
match dump(BufReader::new(file)){ match dump(BufReader::new(file)) {
Ok(_) => (), Ok(_) => (),
Err(err) => { Err(err) => {
error!("Could not dump data of file: {err}"); error!("Could not dump data of file: {err}");

View File

@ -5,11 +5,15 @@
//! //!
//! This crate is currently empty. //! This crate is currently empty.
use std::{fmt::Debug, io::{BufReader, BufRead, prelude::*, Bytes}};
use anyhow::Result; use anyhow::Result;
use std::{
fmt::Debug,
io::{prelude::*, BufRead, BufReader, Bytes},
};
pub fn dump<T>(mut data: BufReader<T>) -> Result<()> pub fn dump<T>(mut data: BufReader<T>) -> Result<()>
where T: Read where
T: Read,
{ {
for (i, b) in data.bytes().enumerate() { for (i, b) in data.bytes().enumerate() {
if i % 8 == 0 { if i % 8 == 0 {