mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add empty_line_after_doc_comments and remove option_if_let_else (#8539)
This commit is contained in:
@ -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)]
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)?)
|
||||
|
||||
Reference in New Issue
Block a user