Skip to content

Commit 3a38c46

Browse files
committed
Fix clippy warnings
1 parent 4fd2b22 commit 3a38c46

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dolby_vision/src/rpu/extension_metadata/primaries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl std::fmt::Display for MasteringDisplayPrimaries {
8080
Self::SGamut => "S-Gamut",
8181
Self::SGamut3Cine => "S-Gamut-3.Cine",
8282
};
83-
write!(f, "{}", alias)
83+
write!(f, "{alias}")
8484
}
8585
}
8686

src/dovi/plotter.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,10 @@ impl PlotType {
516516
pub fn default_output(&self, target_nits: u16) -> String {
517517
match self {
518518
Self::L1 => "L1_plot.png".to_string(),
519-
Self::L2 => format!("L2_plot-{}.png", target_nits),
520-
Self::L8 => format!("L8-trims_plot-{}.png", target_nits),
521-
Self::L8Saturation => format!("L8-saturation_plot-{}.png", target_nits),
522-
Self::L8Hue => format!("L8-hue_plot-{}.png", target_nits),
519+
Self::L2 => format!("L2_plot-{target_nits}.png"),
520+
Self::L8 => format!("L8-trims_plot-{target_nits}.png"),
521+
Self::L8Saturation => format!("L8-saturation_plot-{target_nits}.png"),
522+
Self::L8Hue => format!("L8-hue_plot-{target_nits}.png"),
523523
}
524524
}
525525

src/dovi/rpu_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl RpuInfo {
166166
write!(summary_str, "\n {final_str}")?;
167167
}
168168

169-
write!(summary_str, "\n L5 offsets: {}", l5_str)?;
169+
write!(summary_str, "\n L5 offsets: {l5_str}")?;
170170

171171
if !l2_trims.is_empty() {
172172
write!(summary_str, "\n L2 trims: {}", l2_trims.join(", "))?;

0 commit comments

Comments
 (0)