From f6d64c5f6b8234f984bfa0cde5f5d610edd759f0 Mon Sep 17 00:00:00 2001 From: Oscar Cowdery Lack Date: Tue, 28 Nov 2023 14:22:47 +1100 Subject: [PATCH] Remove unused dependency on http --- async-nats/Cargo.toml | 1 - async-nats/dependencies.md | 1 - async-nats/src/header.rs | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/async-nats/Cargo.toml b/async-nats/Cargo.toml index 3f03dc411..6fd12748b 100644 --- a/async-nats/Cargo.toml +++ b/async-nats/Cargo.toml @@ -23,7 +23,6 @@ regex = "1.9.1" serde = { version = "1.0.184", features = ["derive"] } serde_json = "1.0.104" serde_repr = "0.1.16" -http = "0.2.9" tokio = { version = "1.29.0", features = ["macros", "rt", "fs", "net", "sync", "time", "io-util"] } url = { version = "2"} tokio-rustls = "0.24" diff --git a/async-nats/dependencies.md b/async-nats/dependencies.md index d852f44f3..2ea5281f3 100644 --- a/async-nats/dependencies.md +++ b/async-nats/dependencies.md @@ -7,7 +7,6 @@ This file lists the dependencies used in this repository. | base64 0.21.4 | Apache-2.0 OR MIT | | bytes 1.5.0 | MIT | | futures 0.3.28 | Apache-2.0 OR MIT | -| http 0.2.9 | Apache-2.0 OR MIT | | memchr 2.6.3 | MIT OR Unlicense | | nkeys 0.3.2 | Apache-2.0 | | nuid 0.5.0 | Apache-2.0 | diff --git a/async-nats/src/header.rs b/async-nats/src/header.rs index 1914dc9db..40ea02fb8 100644 --- a/async-nats/src/header.rs +++ b/async-nats/src/header.rs @@ -18,7 +18,7 @@ // is coming from the derive, it didn't work to set it on the struct. #![allow(clippy::mutable_key_type)] -//! NATS [Message][crate::Message] headers, modeled loosely after the [http::header] crate. +//! NATS [Message][crate::Message] headers, modeled loosely after the `http::header` crate. use std::{collections::HashMap, fmt, slice::Iter, str::FromStr}; @@ -26,7 +26,7 @@ use bytes::Bytes; use serde::{Deserialize, Serialize}; /// A struct for handling NATS headers. -/// Has a similar API to [http::header], but properly serializes and deserializes +/// Has a similar API to `http::header`, but properly serializes and deserializes /// according to NATS requirements. /// /// # Examples