1
0
mirror of https://github.com/actix/examples synced 2025-06-27 01:27:43 +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

@ -1,6 +1,5 @@
use serde::{Deserialize, Serialize};
use actix_web::{middleware, web, App, HttpRequest, HttpResponse, HttpServer, Responder, Result};
use serde::{Deserialize, Serialize};
struct AppState {
foo: String,
@ -71,13 +70,14 @@ async fn handle_post_3(req: HttpRequest, params: web::Form<MyParams>) -> impl Re
#[cfg(test)]
mod tests {
use super::*;
use actix_web::body::to_bytes;
use actix_web::dev::{Service, ServiceResponse};
use actix_web::http::{header::HeaderValue, header::CONTENT_TYPE, StatusCode};
use actix_web::test::{self, TestRequest};
use actix_web::web::{Bytes, Form};
use super::*;
trait BodyTest {
fn as_str(&self) -> &str;
}