mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 18:36:11 +02: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:
parent
0dbd3094ec
commit
4a3c11e711
1 changed files with 1 additions and 1 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue