mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fmt: format doc comments (#5308)
This commit is contained in:
@ -118,11 +118,13 @@ impl<R: Resolver> DnsDiscoveryService<R> {
|
||||
/// Creates a new instance of the [DnsDiscoveryService] using the given settings.
|
||||
///
|
||||
/// ```
|
||||
/// use std::sync::Arc;
|
||||
/// use reth_dns_discovery::{DnsDiscoveryService, DnsResolver};
|
||||
/// use std::sync::Arc;
|
||||
/// # fn t() {
|
||||
/// let service =
|
||||
/// DnsDiscoveryService::new(Arc::new(DnsResolver::from_system_conf().unwrap()), Default::default());
|
||||
/// let service = DnsDiscoveryService::new(
|
||||
/// Arc::new(DnsResolver::from_system_conf().unwrap()),
|
||||
/// Default::default(),
|
||||
/// );
|
||||
/// # }
|
||||
/// ```
|
||||
pub fn new(resolver: Arc<R>, config: DnsDiscoveryConfig) -> Self {
|
||||
|
||||
@ -40,8 +40,8 @@ impl<P: ConnectionProvider> Resolver for AsyncResolver<P> {
|
||||
///
|
||||
/// ```
|
||||
/// # fn t() {
|
||||
/// use reth_dns_discovery::resolver::DnsResolver;
|
||||
/// let resolver = DnsResolver::from_system_conf().unwrap();
|
||||
/// use reth_dns_discovery::resolver::DnsResolver;
|
||||
/// let resolver = DnsResolver::from_system_conf().unwrap();
|
||||
/// # }
|
||||
/// ```
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user