You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 = "*"
The text was updated successfully, but these errors were encountered:
The Basic Example does not appear to compile, with the following error:
Using main.rs equal to the basic example and a
Cargo.toml
that looks like:The text was updated successfully, but these errors were encountered: