Skip to content

Commit

Permalink
fix(ci): fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr committed Nov 30, 2022
1 parent 55bcde4 commit a399a1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/rpc-client/src/ckb_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl CKBClient {
.map(|tv| {
let tv: ckb_jsonrpc_types::TransactionView = match tv.inner {
Either::Left(v) => v,
Either::Right(v) => unreachable!(),
Either::Right(_v) => unreachable!(),
};
let tx: ckb_types::packed::Transaction = tv.inner.into();
Ok(Transaction::new_unchecked(tx.as_bytes()))
Expand Down Expand Up @@ -201,7 +201,7 @@ impl CKBClient {
..
}) => match tv.inner {
Either::Left(v) => v,
Either::Right(v) => unreachable!(),
Either::Right(_v) => unreachable!(),
},
_ => bail!("{} {} tx not found", contract, tx_hash),
};
Expand Down
2 changes: 1 addition & 1 deletion crates/tools/src/update_cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub async fn update_cell<P: AsRef<Path>>(args: UpdateCellArgs<'_, P>) -> Result<
.inner
{
Either::Left(v) => v,
Either::Right(v) => unreachable!(),
Either::Right(_v) => unreachable!(),
};
let tx = tv.inner;
let existed_cell = tx
Expand Down
4 changes: 2 additions & 2 deletions crates/tools/src/utils/sdk/traits/default_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use ckb_jsonrpc_types::{self as json_types, Either};
use ckb_types::{
bytes::Bytes,
core::{BlockView, DepType, HeaderView, TransactionView},
packed::{Byte32, CellDep, CellOutput, OutPoint, Script, Transaction, TransactionReader},
packed::{Byte32, CellDep, CellOutput, OutPoint, Script, Transaction},
prelude::*,
H160,
};
Expand Down Expand Up @@ -463,7 +463,7 @@ impl TransactionDependencyProvider for DefaultTransactionDependencyProvider {
}
let tx = match tx_with_status.transaction.unwrap().inner {
Either::Left(t) => Transaction::from(t.inner).into_view(),
Either::Right(bytes) => unreachable!(),
Either::Right(_bytes) => unreachable!(),
};
inner.tx_cache.put(tx_hash.clone(), tx.clone());
Ok(tx)
Expand Down

0 comments on commit a399a1f

Please sign in to comment.