Skip to content

Commit

Permalink
Fix warnings after upgrade to rustc v1.84.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfm committed Jan 20, 2025
1 parent 99129f4 commit 8af4e69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opendut-carl/src/provisioning/cleo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub trait AppendCustomData {
impl AppendCustomData for tar::Builder<GzEncoder<File>> {
fn append_custom_data(&mut self, data: &str, file_name: PathBuf, mode: u32) -> std::io::Result<()> {
let mut header = tar::Header::new_gnu();
header.set_size(data.as_bytes().len() as u64);
header.set_size(data.len() as u64);
header.set_mode(mode);
header.set_cksum();
self.append_data(&mut header, file_name, data.as_bytes())
Expand All @@ -86,7 +86,7 @@ impl AppendCustomData for tar::Builder<GzEncoder<File>> {

#[cfg(test)]
mod test {
use std::{fs};
use std::fs;
use std::fs::File;
use std::str::FromStr;
use assert_fs::assert::PathAssert;
Expand Down Expand Up @@ -157,4 +157,4 @@ mod test {

Ok(())
}
}
}

0 comments on commit 8af4e69

Please sign in to comment.