Skip to content

Commit e614790

Browse files
committed
conduit-test: Remove conduit dependency
ehm... what? but... ... ... okay! :D
1 parent 5a8eaa4 commit e614790

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

conduit-test/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ edition = "2018"
1010

1111
[dependencies]
1212
bytes = "1.3.0"
13-
conduit = { version ="0.10.0", path = "../conduit" }
1413
hyper = "0.14.23"

conduit-test/src/lib.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
use bytes::Bytes;
2-
use hyper::Request;
2+
use hyper::http::{header::IntoHeaderName, HeaderValue, Method, Request};
33
use std::io::Cursor;
44

5-
use conduit::{
6-
header::{HeaderValue, IntoHeaderName},
7-
Method,
8-
};
9-
105
pub struct MockRequest {
11-
request: conduit::Request<Cursor<Bytes>>,
6+
request: Request<Cursor<Bytes>>,
127
}
138

149
impl MockRequest {
1510
pub fn new(method: Method, path: &str) -> MockRequest {
16-
let request = conduit::Request::builder()
11+
let request = Request::builder()
1712
.method(&method)
1813
.uri(path)
1914
.body(Cursor::new(Bytes::new()))
@@ -53,7 +48,7 @@ impl From<MockRequest> for Request<hyper::Body> {
5348
mod tests {
5449
use super::MockRequest;
5550

56-
use conduit::{header, Method};
51+
use hyper::http::{header, Method};
5752

5853
#[test]
5954
fn simple_request_test() {

0 commit comments

Comments
 (0)