mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Latest clippy version complains about our existing code for the following reasons: - trait objects without an explicit `dyn` are deprecated - `...` range patterns are deprecated - lint `clippy::const_static_lifetime` has been renamed to `clippy::redundant_static_lifetimes` - unnecessary `unsafe` block - unneeded return statement All these issues have been fixed through this patch, and rustfmt has been run to cleanup potential formatting errors due to those changes. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
27 lines
918 B
Rust
27 lines
918 B
Rust
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
// Portions Copyright 2017 The Chromium OS Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE-BSD-3-Clause file.
|
|
|
|
#[allow(non_upper_case_globals)]
|
|
#[allow(non_camel_case_types)]
|
|
#[allow(non_snake_case)]
|
|
#[allow(
|
|
clippy::unreadable_literal,
|
|
clippy::redundant_static_lifetimes,
|
|
clippy::trivially_copy_pass_by_ref,
|
|
clippy::useless_transmute,
|
|
clippy::should_implement_trait,
|
|
clippy::transmute_ptr_to_ptr
|
|
)]
|
|
pub mod bootparam;
|
|
#[allow(non_camel_case_types)]
|
|
#[allow(non_upper_case_globals)]
|
|
#[allow(clippy::unreadable_literal, clippy::redundant_static_lifetimes)]
|
|
pub mod mpspec;
|
|
#[allow(non_upper_case_globals)]
|
|
#[allow(clippy::unreadable_literal, clippy::redundant_static_lifetimes)]
|
|
pub mod msr_index;
|