1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

group imports

This commit is contained in:
Rob Ede
2022-07-09 21:08:11 +01:00
parent 4b801ba222
commit a64e21ee6e
23 changed files with 66 additions and 50 deletions

View File

@ -24,11 +24,12 @@ async fn main() -> std::io::Result<()> {
#[cfg(test)]
mod tests {
use super::*;
use actix_web::body::to_bytes;
use actix_web::dev::Service;
use actix_web::{http, test, web, App, Error};
use super::*;
#[actix_web::test]
async fn test_index() -> Result<(), Error> {
let app = App::new().route("/", web::get().to(index));