From 4a3c11e71137e3359669566bf49cd565cdd83a2f Mon Sep 17 00:00:00 2001 From: Xiaobo Liu Date: Tue, 7 Jan 2025 11:14:20 +0800 Subject: [PATCH] scrap: fixed build warnning (#10442) ```shell warning: elided lifetime has a name --> src/common/mod.rs:192:21 | 187 | pub fn to<'a>( | -- lifetime `'a` declared here ... 192 | ) -> ResultType { | ^^^^^^^^^^^ this elided lifetime gets resolved as `'a` | = note: `#[warn(elided_named_lifetimes)]` on by default ``` --- libs/scrap/src/common/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/scrap/src/common/mod.rs b/libs/scrap/src/common/mod.rs index ee96f57c8..6b163d6e4 100644 --- a/libs/scrap/src/common/mod.rs +++ b/libs/scrap/src/common/mod.rs @@ -189,7 +189,7 @@ impl Frame<'_> { yuvfmt: EncodeYuvFormat, yuv: &'a mut Vec, mid_data: &mut Vec, - ) -> ResultType { + ) -> ResultType> { match self { Frame::PixelBuffer(pixelbuffer) => { convert_to_yuv(&pixelbuffer, yuvfmt, yuv, mid_data)?;