cleanup(clippy): Fix a clippy lint and deny.toml entry after recent changes (#7419)

* Remove unmatched-skip-root in deny.toml

* Ignore unused variable when getblocktemplate-rpcs is disabled

---------

Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
This commit is contained in:
teor 2023-08-31 03:26:49 +10:00 committed by GitHub
parent a857d1c48c
commit 5888a4e5d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -90,9 +90,6 @@ skip-tree = [
# wait for tokio-test -> tokio-stream to upgrade
{ name = "tokio-util", version = "=0.6.10" },
# wait for proptest-derive to upgrade proc-macro2 and syn
{ name = "unicode-xid", version = "=0.1.0"},
# wait for console-subscriber and tower to update hdrhistogram.
# also wait for ron to update insta, and wait for tonic update.
{ name = "base64", version = "=0.13.1" },

View File

@ -95,6 +95,7 @@ impl RpcServer {
AddressBook,
>(
config: Config,
#[cfg_attr(not(feature = "getblocktemplate-rpcs"), allow(unused_variables))]
mining_config: crate::config::mining::Config,
build_version: VersionString,
user_agent: UserAgentString,