mirror of
https://github.com/actix/actix-website
synced 2025-06-27 15:39:02 +02:00
moves individual examples to pub mods to force building and have less dead_code
This commit is contained in:
@ -5,7 +5,7 @@ fn index(_req: HttpRequest) -> impl Responder {
|
||||
}
|
||||
|
||||
// <default>
|
||||
fn main() {
|
||||
pub fn main() {
|
||||
App::new()
|
||||
.service(web::resource("/").route(web::get().to(index)))
|
||||
.default_service(
|
||||
|
Reference in New Issue
Block a user