From 15687ca0d70b4d8c6cfab6cccd12dd077795e41c Mon Sep 17 00:00:00 2001 From: Gitea CI Date: Tue, 16 Jan 2024 17:29:38 +0000 Subject: [PATCH] automatic cargo CI changes --- members/libpt-bin/src/hedu/mod.rs | 5 +---- members/libpt-hedu/src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/members/libpt-bin/src/hedu/mod.rs b/members/libpt-bin/src/hedu/mod.rs index 24bedd2..0673216 100644 --- a/members/libpt-bin/src/hedu/mod.rs +++ b/members/libpt-bin/src/hedu/mod.rs @@ -18,10 +18,7 @@ use libpt::{hedu::*, log::*}; use clap::Parser; use clap_verbosity_flag::{InfoLevel, Verbosity}; -use std::{ - fs::File, - io::{Seek, IsTerminal}, -}; +use std::{fs::File, io::IsTerminal}; //// TYPES ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/members/libpt-hedu/src/lib.rs b/members/libpt-hedu/src/lib.rs index 76cbe67..324364d 100644 --- a/members/libpt-hedu/src/lib.rs +++ b/members/libpt-hedu/src/lib.rs @@ -6,8 +6,8 @@ //! This crate is currently empty. use anyhow::{bail, Result}; -use libpt_log::{error, trace, warn, info}; use libpt_bintols::display::{bytes_to_bin, humanbytes}; +use libpt_log::{error, info, trace, warn}; use std::io::{prelude::*, BufReader, Read, SeekFrom}; const BYTES_PER_LINE: usize = 16; @@ -41,7 +41,6 @@ impl DataSource for std::fs::File { pub fn dump(data: &mut dyn DataSource, config: DumpConfig) -> Result<()> { // skip a given number of bytes if config.skip > 0 { - data.skip(config.skip)?; info!("Skipped {}", humanbytes(config.skip)); }