Skip to content

Commit

Permalink
ci: clippy lint of 1.84 fixed (#1290)
Browse files Browse the repository at this point in the history
* ci: clippy lint of 1.84 fixed

* chore: increase gas threshold (random_access?) as per performance degrade

---------

Co-authored-by: dj8yf0μl <[email protected]>
  • Loading branch information
dj8yfo and dj8yf0μl authored Jan 13, 2025
1 parent ae0d1c4 commit 0027201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion near-sdk-macros/src/core_impl/contract_metadata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl ContractMetadata {

// adding nep330 if it is not present
if self.standards.is_empty()
|| self.standards.iter().all(|s| s.standard.to_ascii_lowercase() != "nep330")
|| self.standards.iter().all(|s| !s.standard.eq_ignore_ascii_case("nep330"))
{
self.standards
.push(Standard { standard: "nep330".to_string(), version: "1.2.0".to_string() });
Expand Down
2 changes: 1 addition & 1 deletion near-sdk/tests/store_performance_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async fn setup_worker(contract: Contract) -> anyhow::Result<(Arc<Worker<Sandbox>
fn perform_asserts(total_gas: u64, col: impl Display, override_min_gas: Option<u64>) {
// Constraints a bit relaxed to account for binary differences due to on-demand compilation.
assert!(
total_gas < NearGas::from_tgas(110).as_gas(),
total_gas < NearGas::from_tgas(115).as_gas(),
"performance regression {}: {}",
col,
NearGas::from_gas(total_gas)
Expand Down

0 comments on commit 0027201

Please sign in to comment.