-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: Remove presumably unused Clippy directives
"cargo clippy" seems to pass just fine without most of the Clippy directives we have in the code. I believe some issues have been fixed over time, some directives were unnecessarily added when copy-pasting into a new file, and for the rest I'm not sure; likely, Clippy's behaviour has changed somewhat over time. Anyway, let's remove these if they are not necessary. Signed-off-by: Quentin Monnet <[email protected]>
- Loading branch information
Showing
12 changed files
with
3 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
// SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
// Copyright 2024 Akenes SA <[email protected]> | ||
|
||
#![allow(clippy::unreadable_literal)] | ||
|
||
extern crate elf; | ||
use std::{iter::FromIterator, ptr::addr_of}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
// SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
// Copyright 2016 6WIND S.A. <[email protected]> | ||
|
||
#![allow(clippy::unreadable_literal)] | ||
|
||
extern crate elf; | ||
use std::path::PathBuf; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
// Copyright 2016 6WIND S.A. <[email protected]> | ||
// (Translation to Rust, MetaBuff addition) | ||
|
||
#![allow(clippy::single_match)] | ||
|
||
use std::alloc; | ||
use std::mem; | ||
use std::collections::HashMap; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
// SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
// Copyright 2017 Rich Lane <[email protected]> | ||
|
||
#![allow(clippy::unreadable_literal)] | ||
|
||
extern crate rbpf; | ||
mod common; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
// SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
// Copyright 2016 6WIND S.A. <[email protected]> | ||
|
||
// There are unused mut warnings due to unsafe code. | ||
#![allow(unused_mut)] | ||
#![allow(clippy::unreadable_literal)] | ||
|
||
// This crate would be needed to load bytecode from a BPF-compiled object file. Since the crate | ||
// is not used anywhere else in the library, it is deactivated: we do not want to load and compile | ||
// it just for the tests. If you want to use it, do not forget to add the following | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters