Skip to content

Commit 9c00ae0

Browse files
committed
tests: Fix warnings from clippy::unnecessary_fallible_conversions
1 parent a482a33 commit 9c00ae0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

chain/near/src/trigger.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ pub struct ReceiptWithOutcome {
152152

153153
#[cfg(test)]
154154
mod tests {
155-
use std::convert::TryFrom;
156-
157155
use super::*;
158156

159157
use graph::{
@@ -407,8 +405,7 @@ mod tests {
407405
}
408406

409407
fn big_int(input: u64) -> Option<codec::BigInt> {
410-
let value =
411-
BigInt::try_from(input).unwrap_or_else(|_| panic!("Invalid BigInt value {}", input));
408+
let value = BigInt::from(input);
412409
let bytes = value.to_signed_bytes_le();
413410

414411
Some(codec::BigInt { bytes })

0 commit comments

Comments
 (0)