Skip to content

Commit

Permalink
move clippy annotation to code
Browse files Browse the repository at this point in the history
  • Loading branch information
mimoo committed Jan 28, 2024
1 parent f389853 commit b06380e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings -A clippy::absurd_extreme_comparisons
args: --all-features -- -D warnings
2 changes: 2 additions & 0 deletions src/bob_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ pub struct BobRequest {
}

impl BobRequest {
#[allow(clippy::absurd_extreme_comparisons)]
pub async fn new(
rpc_ctx: &RpcCtx,
bob_address: Address,
Expand Down Expand Up @@ -651,6 +652,7 @@ pub fn extract_smart_contract_from_tx(raw_tx: &Transaction) -> Result<SmartContr
}

/// Fetch the smart contract on-chain from the txid.
#[allow(clippy::absurd_extreme_comparisons)]
pub async fn fetch_smart_contract(ctx: &RpcCtx, txid: bitcoin::Txid) -> Result<SmartContract> {
// fetch transaction + metadata based on txid
debug!("- fetching txid {txid}", txid = txid);
Expand Down

0 comments on commit b06380e

Please sign in to comment.