diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-02-13 12:50:57 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-02-13 12:50:57 +0300 |
commit | 04e101c605cf93642f3ebc837ec0dbcc9b4e93d0 (patch) | |
tree | d3796e85fc308f847dfc1dd032e04d3234c98584 /video/gif | |
parent | 034c0f0fd8f9c87bea0bddf50179cbe5257dfe85 (diff) |
Optimize various error message / debug message formatting
Directly make use of format strings instead of formatting a string
beforehand and then passing it to the macros.
Diffstat (limited to 'video/gif')
-rw-r--r-- | video/gif/src/gifenc/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs index 67a19474b..c813a809d 100644 --- a/video/gif/src/gifenc/imp.rs +++ b/video/gif/src/gifenc/imp.rs @@ -380,7 +380,7 @@ impl VideoEncoderImpl for GifEnc { // encode new frame let context = state.context.as_mut().unwrap(); if let Err(e) = context.write_frame(&gif_frame) { - gst::element_imp_error!(self, gst::CoreError::Failed, [&e.to_string()]); + gst::element_imp_error!(self, gst::CoreError::Failed, ["{e}"]); return Err(gst::FlowError::Error); } } |