Skip to content

Commit

Permalink
Ignores the broken lint clippy::literal_string_with_formatting_args.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Jan 8, 2025
1 parent c4e923a commit 9768a2c
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

//! Virtual machine for SBPF programs.
#![warn(missing_docs)]
#![allow(clippy::literal_string_with_formatting_args)]
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::ptr_as_ptr)]

Expand Down
2 changes: 2 additions & 0 deletions tests/assembler.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#![allow(clippy::literal_string_with_formatting_args)]
#![allow(clippy::arithmetic_side_effects)]

// Copyright 2017 Rich Lane <[email protected]>
//
// Licensed under the Apache License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0> or
Expand Down
2 changes: 2 additions & 0 deletions tests/disassembler.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::literal_string_with_formatting_args)]

// Copyright 2017 Jan-Erik Rediger <[email protected]>
//
// Adopted from tests in `tests/assembler.rs`
Expand Down
2 changes: 2 additions & 0 deletions tests/elf.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::literal_string_with_formatting_args)]

use byteorder::{ByteOrder, LittleEndian};
use solana_sbpf::{
ebpf,
Expand Down
2 changes: 2 additions & 0 deletions tests/execution.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![allow(clippy::literal_string_with_formatting_args)]
#![allow(clippy::arithmetic_side_effects)]
#![cfg(all(feature = "jit", not(target_os = "windows"), target_arch = "x86_64"))]

// Copyright 2020 Solana Maintainers <[email protected]>
//
// Licensed under the Apache License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0> or
Expand Down
2 changes: 2 additions & 0 deletions tests/exercise_instructions.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![allow(clippy::literal_string_with_formatting_args)]
#![allow(clippy::arithmetic_side_effects)]
#![cfg(all(feature = "jit", not(target_os = "windows"), target_arch = "x86_64"))]

// Copyright 2020 Solana Maintainers <[email protected]>
//
// Licensed under the Apache License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0> or
Expand Down
1 change: 1 addition & 0 deletions tests/jit.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::literal_string_with_formatting_args)]
#![cfg(all(test, target_arch = "x86_64", not(target_os = "windows")))]

use byteorder::{ByteOrder, LittleEndian};
Expand Down
2 changes: 2 additions & 0 deletions tests/verifier.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::literal_string_with_formatting_args)]

// Converted from the tests for uBPF <https://github.com/iovisor/ubpf>
// Copyright 2015 Big Switch Networks, Inc
// Copyright 2016 6WIND S.A. <[email protected]>
Expand Down
2 changes: 2 additions & 0 deletions tests/vm.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::literal_string_with_formatting_args)]

use solana_sbpf::{
elf::Executable,
program::{BuiltinFunction, BuiltinProgram, FunctionRegistry},
Expand Down

0 comments on commit 9768a2c

Please sign in to comment.