Skip to content

Commit 4a37005

Browse files
committed
fix: example
1 parent 8c36c01 commit 4a37005

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ zstd = { version = "0.13.3", optional = true }
5858
[features]
5959
client = ["dep:tokio-rustls", "dep:rustls", "dep:webpki-roots"]
6060
default = []
61-
file-stream = []
61+
file-stream = ["dep:mime"]
6262
http2 = []
6363
jemalloc = ["dep:tikv-jemallocator"]
6464
multipart = ["dep:multer", "dep:uuid"]

examples/file-stream/Cargo.lock

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

examples/streams/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::convert::Infallible;
33
use anyhow::Result;
44
use bytes::Bytes;
55
use futures_util::{StreamExt, stream};
6-
use http::{StatusCode, header};
76
use hyper::body::Frame;
7+
use hyper::{StatusCode, header};
88
use tako::{
99
Method, body::TakoBody, bytes::TakoBytes, responder::Responder, router::Router, sse::Sse,
1010
types::Request,

0 commit comments

Comments
 (0)