mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
We use the version that's included in the linux-loader crate. This old
version was also generating build errors after updating to the new
clippy:
e.g.:
error: unsafe function's docs miss `# Safety` section
--> arch_gen/src/x86/bootparam.rs:23:5
|
23 | / pub unsafe fn as_ptr(&self) -> *const T {
24 | | ::std::mem::transmute(self)
25 | | }
| |_____^
|
= note: `-D clippy::missing-safety-doc` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
26 lines
899 B
Rust
26 lines
899 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
|
|
)]
|
|
#[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;
|