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

@ -1,11 +1,11 @@
// <resource>
use actix_web::{http::Method, web, App, HttpRequest, HttpResponse};
use actix_web::{web, App, HttpRequest, HttpResponse};
fn index(_req: HttpRequest) -> HttpResponse {
unimplemented!()
}
fn main() {
pub fn main() {
App::new()
.service(web::resource("/prefix").to(index))
.service(