1
0
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:
Cameron Dershem
2019-06-19 00:20:50 -04:00
parent a3cb721ed3
commit 4f9bd8b724
49 changed files with 226 additions and 191 deletions

View File

@ -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(