You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
From 55af8d29c97545e7fa672d091010010cbd70cb5c Mon Sep 17 00:00:00 2001
|
|
From: Fabio Valentini <decathorpe@gmail.com>
|
|
Date: Thu, 14 Dec 2023 12:51:52 +0100
|
|
Subject: [PATCH] do not run doctests which require internet access
|
|
|
|
---
|
|
src/lib.rs | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/lib.rs b/src/lib.rs
|
|
index 7355114..76b64d2 100644
|
|
--- a/src/lib.rs
|
|
+++ b/src/lib.rs
|
|
@@ -98,7 +98,7 @@
|
|
//!
|
|
//! Using the Client to query for DNS records is easy enough, though it performs no resolution. The `hickory-resolver` has a simpler interface if that's what is desired. Over time that library will gain more features to generically query for different types.
|
|
//!
|
|
-//! ```rust
|
|
+//! ```rust,no_run
|
|
//! use std::net::Ipv4Addr;
|
|
//! use std::str::FromStr;
|
|
//! # use hickory_client::client::{Client, SyncClient};
|
|
@@ -223,7 +223,7 @@
|
|
//! This example is meant to show basic usage, using the #[tokio::main] macro to setup a simple runtime.
|
|
//! The Tokio documentation should be reviewed for more advanced usage.
|
|
//!
|
|
-//! ```rust
|
|
+//! ```rust,no_run
|
|
//! use std::net::Ipv4Addr;
|
|
//! use std::str::FromStr;
|
|
//! use tokio::net::TcpStream as TokioTcpStream;
|
|
--
|
|
2.43.0
|
|
|