&mut Cursor::new(&mut w), image::ImageFormat::Png) .or_raise.

{ #[allow( clippy::unnecessary_wraps, reason = "stub implementation, API dictated by caller" )] pub(crate) fn metrics_gather() -> Vec<MetricFamily> { Vec::new() } pub(crate) fn generate<R: RngCore, S: AsRef<str>>( &self, mut.