mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
fuse, media/ffmpeg: remove unnecessary lifetime annotations
The references are only needed within the function call, so no lifetime is required. BUG=b:276487055 TEST=tools/clippy # with rust 1.68 Change-Id: I96fd94863f690ee37c953b9f7929e191a033a9c6 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4391106 Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
f9cc2d0827
commit
4789e79313
2 changed files with 3 additions and 3 deletions
|
@ -1093,10 +1093,10 @@ impl<F: FileSystem + Sync> Server<F> {
|
|||
}
|
||||
}
|
||||
|
||||
fn lookup_dirent_attribute<'d>(
|
||||
fn lookup_dirent_attribute(
|
||||
&self,
|
||||
in_header: &InHeader,
|
||||
dir_entry: &DirEntry<'d>,
|
||||
dir_entry: &DirEntry,
|
||||
) -> io::Result<Entry> {
|
||||
let parent = in_header.nodeid.into();
|
||||
let name = dir_entry.name.to_bytes();
|
||||
|
|
|
@ -454,7 +454,7 @@ impl AvCodecContext {
|
|||
///
|
||||
/// Error codes are the same as those returned by `avcodec_send_packet` with the exception of
|
||||
/// EAGAIN which is converted into `Ok(false)` as it is not actually an error.
|
||||
pub fn try_send_packet<'a>(&mut self, packet: &AvPacket<'a>) -> Result<bool, AvError> {
|
||||
pub fn try_send_packet(&mut self, packet: &AvPacket) -> Result<bool, AvError> {
|
||||
// Safe because the context is valid through the life of this object, and `packet`'s
|
||||
// lifetime properties ensures its memory area is readable.
|
||||
match unsafe { ffi::avcodec_send_packet(self.0, &packet.packet) } {
|
||||
|
|
Loading…
Reference in a new issue