From fd49a74fe386dd99c6c02b49c09f5ff8bdd3d696 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Tue, 10 Dec 2024 21:59:28 +0100 Subject: [PATCH] clippy+fmt --- bench/src/benchnew.rs | 1 - lite-rpc/src/cli.rs | 2 +- prioritization_fees/src/stats_calculation.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bench/src/benchnew.rs b/bench/src/benchnew.rs index f25bb743..04643eee 100644 --- a/bench/src/benchnew.rs +++ b/bench/src/benchnew.rs @@ -14,7 +14,6 @@ use clap::{Parser, Subcommand}; #[derive(Parser, Debug)] #[clap(version, about)] - struct Arguments { #[clap(subcommand)] subcommand: SubCommand, diff --git a/lite-rpc/src/cli.rs b/lite-rpc/src/cli.rs index ed20ea35..e2c0e592 100644 --- a/lite-rpc/src/cli.rs +++ b/lite-rpc/src/cli.rs @@ -331,7 +331,7 @@ impl Debug for GrpcSource { fn url_obfuscate_api_token(url: &str) -> Cow { if let Ok(mut parsed) = Url::parse(url) { if parsed.path() == "/" { - return Cow::Borrowed(url); + Cow::Borrowed(url) } else { parsed.set_path("omitted-secret"); Cow::Owned(parsed.to_string()) diff --git a/prioritization_fees/src/stats_calculation.rs b/prioritization_fees/src/stats_calculation.rs index 83f02010..0cce04d0 100644 --- a/prioritization_fees/src/stats_calculation.rs +++ b/prioritization_fees/src/stats_calculation.rs @@ -2,7 +2,7 @@ use crate::{prioritization_fee_data::PrioFeesData, rpc_data::FeePoint}; use itertools::Itertools; use std::iter::zip; -/// `quantile` function is the same as the median if q=50, the same as the minimum if q=0 and the same as the maximum if q=100. +// `quantile` function is the same as the median if q=50, the same as the minimum if q=0 and the same as the maximum if q=100. pub fn calculate_supp_percentiles( // Vec(prioritization_fees, cu_consumed)