Skip to content

Commit

Permalink
update deps, fix multipart example
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl committed May 13, 2019
1 parent 98c8345 commit cec8824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ http = "0.1"
http-service = "0.2.0"
pin-utils = "0.1.0-alpha.4"
route-recognizer = "0.1.12"
serde = "1.0.90"
serde_derive = "1.0.90"
serde = "1.0.91"
serde_derive = "1.0.91"
serde_json = "1.0.39"
slog = "2.4.1"
slog-async = "2.3.0"
Expand All @@ -42,7 +42,7 @@ version = "0.2.0"
[dependencies.multipart]
default-features = false
features = ["server"]
version = "0.15.3"
version = "0.16.1"

[features]
default = ["hyper"]
Expand Down
2 changes: 1 addition & 1 deletion examples/multipart-form/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async fn upload_file(mut cx: Context<()>) -> EndpointResult {

cx.body_multipart()
.await?
.foreach_entry(|mut entry| match entry.headers.name.as_str() {
.foreach_entry(|mut entry| match &*entry.headers.name {
"file" => {
let mut vec = Vec::new();
entry.data.read_to_end(&mut vec).expect("can't read");
Expand Down

0 comments on commit cec8824

Please sign in to comment.