mirror of
https://github.com/actix/examples
synced 2025-06-26 09:17:41 +02:00
address clippy lints
This commit is contained in:
@ -4,7 +4,8 @@ version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
actix-web = { workspace = true, features = ["openssl"] }
|
||||
actix-web.workspace = true
|
||||
env_logger.workspace = true
|
||||
serde = { version = "^1.0", features = ["derive"] }
|
||||
serde_json = "1.0.39"
|
||||
log.workspace = true
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
@ -3,8 +3,9 @@ use nested_routing::app_config::config_app;
|
||||
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
std::env::set_var("RUST_LOG", "actix_server=info,actix_web=info");
|
||||
env_logger::init();
|
||||
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
|
||||
|
||||
log::info!("starting HTTP server at http://localhost:8080");
|
||||
|
||||
HttpServer::new(|| {
|
||||
App::new()
|
Reference in New Issue
Block a user