Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Example does not compile #4

Closed
cetra3 opened this issue Oct 30, 2017 · 4 comments
Closed

Basic Example does not compile #4

cetra3 opened this issue Oct 30, 2017 · 4 comments

Comments

@cetra3
Copy link
Contributor

cetra3 commented Oct 30, 2017

The Basic Example does not appear to compile, with the following error:

error[E0277]: the trait bound `actix_web::Body: std::convert::From<std::string::String>` is not satisfied
  --> src/main.rs:20:10
   |
20 |         .body(format!("Hello {}!", req.match_info().get("name").unwrap()))
   |          ^^^^ the trait `std::convert::From<std::string::String>` is not implemented for `actix_web::Body`
   |
   = note: required because of the requirements on the impl of `std::convert::Into<actix_web::Body>` for `std::string::String`

Using main.rs equal to the basic example and a Cargo.toml that looks like:

[package]
name = "actix_test"
version = "0.1.0"

[dependencies]
actix = "*"
actix-web = "*"
env_logger = "*"
@fafhrd91
Copy link
Member

examples require actix-web from master. I will release new version of actix-web during next couple days

@cetra3
Copy link
Contributor Author

cetra3 commented Oct 30, 2017

I'll give the master branch a shot. Thanks!

@fafhrd91
Copy link
Member

I have another complex example. I am working on Sockjs server implementation. this is server for SockJS client

@fafhrd91
Copy link
Member

new version is published

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants