summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2021-10-10 15:46:11 +0530
committerGitHub <noreply@github.com>2021-10-10 15:46:11 +0530
commit29f9e14457998085ec38cce597558d88b3d804e7 (patch)
treeb437b5aa1d629490599c2eee4c3088f6877ae6d0 /ext/net/ops.rs
parent25771b3d9b36a7262d42809bfbb5497ed8057780 (diff)
feat: stabilize Deno.resolveDns (#12368)
Diffstat (limited to 'ext/net/ops.rs')
-rw-r--r--ext/net/ops.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/net/ops.rs b/ext/net/ops.rs
index 43a562e0f..8c8d32da5 100644
--- a/ext/net/ops.rs
+++ b/ext/net/ops.rs
@@ -538,7 +538,7 @@ where
#[derive(Serialize, PartialEq, Debug)]
#[serde(untagged)]
-enum DnsReturnRecord {
+pub enum DnsReturnRecord {
A(String),
Aaaa(String),
Aname(String),
@@ -583,7 +583,7 @@ pub struct NameServer {
port: u16,
}
-async fn op_dns_resolve<NP>(
+pub async fn op_dns_resolve<NP>(
state: Rc<RefCell<OpState>>,
args: ResolveAddrArgs,
_: (),