Skip to content

Commit

Permalink
ci: fix new lints, introduced in 1.78 (#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yfo committed May 21, 2024
1 parent e22f74e commit 018bc3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/fungible-token/test-contract-defi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub struct DeFi {
}

// Have to repeat the same trait for our own implementation.
#[allow(dead_code)]
trait ValueReturnTrait {
fn value_please(&self, amount_to_return: String) -> PromiseOrValue<U128>;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl AttrSigInfo {

self_occurrences.extend(args.iter().flat_map(|arg| arg.self_occurrences.clone()));

*original_attrs = non_bindgen_attrs.clone();
original_attrs.clone_from(&non_bindgen_attrs);

if matches!(method_kind, MethodKind::Call(_) | MethodKind::View(_)) {
report_spans(
Expand Down
2 changes: 1 addition & 1 deletion near-sdk/compilation_tests/schema_derive_invalids.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ error[E0277]: the trait bound `Inner: JsonSchema` is not satisfied
i128
and $N others
note: required by a bound in `SchemaGenerator::subschema_for`
--> $CARGO/schemars-0.8.17/src/gen.rs
--> $CARGO/schemars-0.8.20/src/gen.rs
|
| pub fn subschema_for<T: ?Sized + JsonSchema>(&mut self) -> Schema {
| ^^^^^^^^^^ required by this bound in `SchemaGenerator::subschema_for`
1 change: 1 addition & 0 deletions near-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#![allow(clippy::redundant_closure)]
// We want to enable all clippy lints, but some of them generate false positives.
#![allow(clippy::missing_const_for_fn, clippy::redundant_pub_crate)]
#![allow(clippy::multiple_bound_locations)]

#[cfg(test)]
extern crate quickcheck;
Expand Down

0 comments on commit 018bc3d

Please sign in to comment.