mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-02-17 22:11:30 +08:00
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<EncodeInput> {
| ^^^^^^^^^^^ this elided lifetime gets resolved as `'a`
|
= note: `#[warn(elided_named_lifetimes)]` on by default
```
This commit is contained in:
@@ -189,7 +189,7 @@ impl Frame<'_> {
|
||||
yuvfmt: EncodeYuvFormat,
|
||||
yuv: &'a mut Vec<u8>,
|
||||
mid_data: &mut Vec<u8>,
|
||||
) -> ResultType<EncodeInput> {
|
||||
) -> ResultType<EncodeInput<'a>> {
|
||||
match self {
|
||||
Frame::PixelBuffer(pixelbuffer) => {
|
||||
convert_to_yuv(&pixelbuffer, yuvfmt, yuv, mid_data)?;
|
||||
|
||||
Reference in New Issue
Block a user