mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: Address issues found by 1.43.0 clippy
These are mostly due to use of "bare use" statements and unnecessary vector creation. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
fbd1a6c5f1
commit
c31ad72ee9
@@ -2,15 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
use std::convert::TryInto;
|
||||
use std::ffi::CStr;
|
||||
use std::fs::File;
|
||||
use std::io::{self, Read, Write};
|
||||
use std::mem::size_of;
|
||||
|
||||
use libc;
|
||||
use vm_memory::ByteValued;
|
||||
|
||||
use super::fs_cache_req_handler::FsCacheReqHandler;
|
||||
use crate::descriptor_utils::{Reader, Writer};
|
||||
use crate::filesystem::{
|
||||
@@ -19,6 +10,12 @@ use crate::filesystem::{
|
||||
};
|
||||
use crate::fuse::*;
|
||||
use crate::{Error, Result};
|
||||
use std::convert::TryInto;
|
||||
use std::ffi::CStr;
|
||||
use std::fs::File;
|
||||
use std::io::{self, Read, Write};
|
||||
use std::mem::size_of;
|
||||
use vm_memory::ByteValued;
|
||||
|
||||
const MAX_BUFFER_SIZE: u32 = 1 << 20;
|
||||
const DIRENT_PADDING: [u8; 8] = [0; 8];
|
||||
|
||||
Reference in New Issue
Block a user