generated from PlexSheep/baserepo
automatic cargo CI changes
This commit is contained in:
parent
3f59e99b88
commit
66932f70a3
|
@ -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}");
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Reference in New Issue