mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
sys_util: shm: Make clippy clean
clippy wants a default impl for `MemfdSeals` Signed-off-by: Dylan Reid <dgreid@chromium.org> Change-Id: I3202037f7b82d7d4e63154a349c505fd7707bb9a Reviewed-on: https://chromium-review.googlesource.com/1510070 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Stephen Barber <smbarber@chromium.org>
This commit is contained in:
parent
31c79375da
commit
348df2dbf7
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ unsafe fn memfd_create(name: *const c_char, flags: c_uint) -> c_int {
|
|||
/// A set of memfd seals.
|
||||
///
|
||||
/// An enumeration of each bit can be found at `fcntl(2)`.
|
||||
#[derive(Copy, Clone)]
|
||||
#[derive(Copy, Clone, Default)]
|
||||
pub struct MemfdSeals(i32);
|
||||
|
||||
impl MemfdSeals {
|
||||
|
|
Loading…
Reference in a new issue