Skip to content

Commit 5ab7afe

Browse files
committed
clippy: whitelist inapplicable lints
1 parent 2237906 commit 5ab7afe

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

clippy.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
msrv = "1.48.0"
2+
# plan API returns Self as an error type for an large-ish enum
3+
large-error-threshold = 256

src/plan.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ impl Assets {
702702
pub fn new() -> Self { Self::default() }
703703

704704
/// Add some assets
705+
#[allow(clippy::should_implement_trait)] // looks like the `ops::Add` trait
705706
pub fn add<A: IntoAssets>(mut self, asset: A) -> Self {
706707
self.append(asset.into_assets());
707708
self

0 commit comments

Comments
 (0)