Skip to content

Commit 2367f23

Browse files
committed
clippy: fix
Instead of applying the fixes, it is better to ignore the lints. In once case, we have false positives. In the other case, we actually like the old style. For instance: We prefer ``` /// # Parameters /// * `some_param` This parameter has a /// very long description ``` over ``` /// # Parameters /// * `some_param` This parameter has a /// very long description ```
1 parent 48295b3 commit 2367f23

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

uefi-raw/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
missing_debug_implementations,
2222
unused
2323
)]
24+
#![allow(clippy::doc_overindented_list_items)]
2425

2526
#[macro_use]
2627
mod enums;

uefi/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
unsafe_op_in_unsafe_fn,
228228
unused
229229
)]
230+
#![allow(clippy::doc_overindented_list_items)]
230231

231232
#[cfg(feature = "alloc")]
232233
extern crate alloc;

uefi/src/proto/driver/component_name.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ impl ComponentName {
184184
///
185185
/// [ISO 639-2]: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
186186
/// [RFC 4646]: https://www.rfc-editor.org/rfc/rfc4646
187+
#[allow(clippy::missing_const_for_fn)] // false-positive since Rust 1.86
187188
pub fn supported_languages(&self) -> core::result::Result<LanguageIter, LanguageError> {
188189
match self {
189190
Self::V1(cn1) => cn1.supported_languages(),

uefi/src/runtime.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ pub struct VariableKey {
884884
impl VariableKey {
885885
/// Name of the variable.
886886
#[deprecated = "Use the VariableKey.name field instead"]
887+
#[allow(clippy::missing_const_for_fn)] // false-positive since Rust 1.86
887888
pub fn name(&self) -> core::result::Result<&CStr16, crate::data_types::FromSliceWithNulError> {
888889
Ok(&self.name)
889890
}

0 commit comments

Comments
 (0)