Skip to content

Commit

Permalink
move lint allows into code
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Dec 11, 2024
1 parent a390203 commit 79cb1cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,3 @@ lto = true
[profile.release-with-logs]
inherits = "release"
debug-assertions = true

[lints.clippy]
# The SDK uses TryFrom/From/TryInto/Into not according to conventions. Types
# have TryFrom impls, and then Into impls that call the TryFrom and panic.
unnecessary_fallible_conversions = "allow"
# The SDK uses #[test] in doctests, and does some sneaky line hiding to have
# the doctest execute the test.
test_attr_in_doctest = "allow"
6 changes: 6 additions & 0 deletions soroban-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
#![cfg_attr(target_family = "wasm", no_std)]
#![cfg_attr(feature = "docs", feature(doc_cfg))]
#![allow(dead_code)]
// The SDK uses #[test] in doctests, and does some sneaky line hiding to have
// the doctest execute the test inside a main function instead.
#![allow(clippy::test_attr_in_doctest)]
// The SDK uses TryFrom/From/TryInto/Into not according to conventions. Types
// have TryFrom impls, and then Into impls that call the TryFrom and panic.
#![allow(clippy::unnecessary_fallible_conversions)]

pub mod _migrating;

Expand Down

0 comments on commit 79cb1cc

Please sign in to comment.