Skip to content

Commit

Permalink
Allow deprecated in main lib module
Browse files Browse the repository at this point in the history
We deprecate a variant in `GetPeerInfoResultNetwork` that causes clippy
to give a false positive. Adding an attribute on the enum does not
quitet it down, just add a module level attribute.

This warning has been here for ever.
  • Loading branch information
tcharding committed May 7, 2024
1 parent f19c1b5 commit 48424da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#![crate_name = "bitcoincore_rpc_json"]
#![crate_type = "rlib"]
#![allow(deprecated)] // Because of `GetPeerInfoResultNetwork::Unroutable`.

pub extern crate bitcoin;
#[allow(unused)]
Expand Down

0 comments on commit 48424da

Please sign in to comment.