Skip to content

Commit 579665f

Browse files
authored
Remove actix_rt dependency in actix_web example (cloudevents#102)
Signed-off-by: tottoto <[email protected]>
1 parent 5e5aca5 commit 579665f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

example-projects/actix-web-example/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ edition = "2018"
88
cloudevents-sdk = { path = "../.." }
99
cloudevents-sdk-actix-web = { path = "../../cloudevents-sdk-actix-web" }
1010
actix-web = "^3"
11-
actix-rt = "1"
1211
actix-cors = "^0.5"
1312
lazy_static = "1.4.0"
1413
bytes = "^0.5"

example-projects/actix-web-example/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async fn get_event() -> Result<HttpResponse, actix_web::Error> {
2828
.await?)
2929
}
3030

31-
#[actix_rt::main]
31+
#[actix_web::main]
3232
async fn main() -> std::io::Result<()> {
3333
std::env::set_var("RUST_LOG", "actix_server=info,actix_web=info");
3434
env_logger::init();

0 commit comments

Comments
 (0)