Skip to content

Commit eea6edb

Browse files
committed
insert variables in format strings
1 parent 6de2ade commit eea6edb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fn construct_uri_engine(uri_args: UriArgs) -> Result<UnzipEngine, RipunzipErrors
189189
fn list(engine: UnzipEngine) -> Result<(), RipunzipErrors> {
190190
let files = engine.list()?;
191191
for f in files {
192-
println!("{}", f);
192+
println!("{f}");
193193
}
194194
Ok(())
195195
}

src/unzip/http_range_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl RangeFetcher {
7575
/// can be expensive if you only care about a few bytes later in a
7676
/// resource.)
7777
pub(crate) fn fetch_range(&self, offset: u64) -> Result<Response, Error> {
78-
log::debug!("Fetch range 0x{:x}", offset);
78+
log::debug!("Fetch range 0x{offset:x}");
7979
let mut builder = self.client.get(&self.uri);
8080
if self.accept_ranges {
8181
let range_header = format!("bytes={}-{}", offset, self.len());

src/unzip/seekable_http_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl SeekableHttpReaderEngine {
364364
// reinsert reading materials back into the state
365365
// release STATE mutex
366366
// NOTIFYALL on condvar
367-
log::debug!("Read: requested position 0x{:x}.", pos);
367+
log::debug!("Read: requested position 0x{pos:x}.");
368368

369369
if pos == self.len {
370370
return Err(std::io::Error::new(

0 commit comments

Comments
 (0)