1
0
mirror of https://github.com/actix/examples synced 2025-06-27 01:27:43 +02:00

remove unwraps in multipart examples

inspired by #406
This commit is contained in:
Rob Ede
2021-10-07 03:27:50 +01:00
parent 465b6a9c0a
commit 0c4ab86a9a
8 changed files with 61 additions and 43 deletions

View File

@ -1,14 +1,17 @@
// Allow this lint since it's fine to use type directly in the short example.
#![allow(clippy::type_complexity)]
use std::error;
use std::pin::Pin;
use std::sync::{Arc, RwLock};
use std::time::Duration;
use std::{
error,
future::Future,
pin::Pin,
sync::{Arc, RwLock},
time::Duration,
};
use actix_web::{middleware, web, App, Error, HttpResponse, HttpServer};
use bytes::Bytes;
use futures::{Future, FutureExt};
use futures_util::FutureExt as _;
use serde_json::Value;
#[allow(dead_code)]