add empty_line_after_doc_comments and remove option_if_let_else (#8539)

This commit is contained in:
Thomas Coratger
2024-06-01 17:21:50 +02:00
committed by GitHub
parent dfce570ceb
commit da233bf322
5 changed files with 5 additions and 8 deletions

View File

@ -3,7 +3,6 @@
use std::{fmt, num::ParseIntError, str::FromStr};
/// A macro that generates types that maps "0" to "None" when parsing CLI arguments.
macro_rules! zero_as_none {
($type_name:ident, $inner_type:ty) => {
#[derive(Debug, Clone, Copy, PartialEq, Eq)]

View File

@ -48,8 +48,8 @@ mod ipc;
mod rpc_service;
/// Ipc Server implementation
// This is an adapted `jsonrpsee` Server, but for `Ipc` connections.
///
/// This is an adapted `jsonrpsee` Server, but for `Ipc` connections.
pub struct IpcServer<HttpMiddleware = Identity, RpcMiddleware = Identity> {
/// The endpoint we listen for incoming transactions
endpoint: String,

View File

@ -1518,7 +1518,7 @@ pub struct RpcServerConfig {
jwt_secret: Option<JwtSecret>,
}
/// === impl RpcServerConfig ===
// === impl RpcServerConfig ===
impl RpcServerConfig {
/// Creates a new config with only http set

View File

@ -1641,8 +1641,7 @@ impl<TX: DbTx> TransactionsProviderExt for DatabaseProvider<TX> {
}
}
/// Calculates the hash of the given transaction
// Calculates the hash of the given transaction
impl<TX: DbTx> TransactionsProvider for DatabaseProvider<TX> {
fn transaction_id(&self, tx_hash: TxHash) -> ProviderResult<Option<TxNumber>> {
Ok(self.tx.get::<tables::TransactionHashNumbers>(tx_hash)?)