Skip to content

Commit 3dbbb1f

Browse files
chore(deps): bump the crate-deps group with 2 updates (#91)
2 parents 8c28924 + f3074bd commit 3dbbb1f

File tree

8 files changed

+20
-23
lines changed

8 files changed

+20
-23
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ rust-version = "1.85"
1515
resolver = "3"
1616

1717
[dependencies]
18-
clap = { version = "4.5.39", features = ["derive"] }
19-
csscolorparser = "0.7.1"
18+
clap = { version = "4.5.40", features = ["derive"] }
19+
csscolorparser = "0.7.2"
2020
env_logger = "0.11.8"
2121
image = { version = "0.25.6", features = ["bmp", "gif", "hdr", "ico", "jpeg", "png", "tga", "tiff", "webp", "rayon"], default-features = false }
2222
log = "0.4.27"

src/file_collector/file_pair.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl FilePair {
1919
pub fn build(base_path: &PathBuf, input_path: PathBuf, output_config: &OutputConfig) -> Self {
2020
let relative_path = input_path
2121
.strip_prefix(base_path)
22-
.unwrap_or_else(|_| panic!("Failed to strip prefix: {:?}", input_path))
22+
.unwrap_or_else(|_| panic!("Failed to strip prefix: {input_path:?}"))
2323
.parent()
2424
.unwrap_or(Path::new(""));
2525
let output_filename = filename(&input_path, output_config);

src/file_collector/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ fn authorize_overwrite(path: &PathBuf, overwrite: bool) -> bool {
4545
}
4646

4747
if overwrite {
48-
log::warn!("Overwriting existing file: {:?}", path);
48+
log::warn!("Overwriting existing file: {path:?}");
4949
return true;
5050
}
5151

5252
#[rustfmt::skip] // When the string is on its own line, tarpaulin thinks it's untested
53-
log::warn!("File already exists: {:?}. Run with --y to replace it.", path);
53+
log::warn!("File already exists: {path:?}. Run with --y to replace it.");
5454
false
5555
}
5656

src/geometry/aspect_ratio.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ impl FromStr for AspectRatio {
4444
}
4545
(Ok(_), Ok(0.0)) => {
4646
return Err(OliframeError::InvalidInput(format!(
47-
"Denominator cannot be zero: {}",
48-
input
47+
"Denominator cannot be zero: {input}"
4948
)));
5049
}
5150
_ => continue,
@@ -54,8 +53,7 @@ impl FromStr for AspectRatio {
5453
}
5554

5655
Err(OliframeError::InvalidInput(format!(
57-
"Invalid ratio: {}",
58-
input
56+
"Invalid ratio: {input}"
5957
)))
6058
}
6159
}

src/geometry/margins.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ impl Margins {
6060
let len = values.len();
6161
if !(1..=4).contains(&len) {
6262
return Err(OliframeError::InvalidInput(format!(
63-
"Margins must be specified with 1-4 positive values (received {} values).",
64-
len
63+
"Margins must be specified with 1-4 positive values (received {len} values)."
6564
)));
6665
}
6766

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ fn main() {
4141
let config = match Config::try_from(args) {
4242
Ok(c) => c,
4343
Err(e) => {
44-
log::error!("{}", e);
44+
log::error!("{e}");
4545
std::process::exit(1);
4646
}
4747
};
4848

49-
log::debug!("Configuration: {:#?}", config);
49+
log::debug!("Configuration: {config:#?}");
5050

5151
FileCollector::collect(&config)
5252
.into_par_iter()
@@ -56,6 +56,6 @@ fn main() {
5656
config.frame_config(),
5757
config.output_config().dry_run(),
5858
)
59-
.unwrap_or_else(|e| log::error!("{}", e));
59+
.unwrap_or_else(|e| log::error!("{e}"));
6060
});
6161
}

src/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn populate_test_directory(base_dir: &TempDir) -> Vec<NamedTempFile> {
1616
.map(|ext| {
1717
Builder::new()
1818
.prefix(TEST_FS_PREFIX)
19-
.suffix(&format!(".{}", ext))
19+
.suffix(&format!(".{ext}"))
2020
.tempfile_in(base_dir.path())
2121
.unwrap()
2222
})

0 commit comments

Comments
 (0)