From 9195d5623c300cc21f38e6343691ee084bf06597 Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 24 Sep 2022 17:19:53 -0500 Subject: [PATCH] Update lib.rs example --- src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 49ed955..3074214 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,18 +28,17 @@ //! use actix_form_data::{Error, Field, Form, FormData, Multipart, Value}; //! use actix_web::{ //! web::{post, resource}, -//! App, HttpResponse, HttpServer, +//! App, HttpRequest, HttpResponse, HttpServer, //! }; //! use futures_util::stream::StreamExt; //! //! struct UploadedContent(Value<()>); //! //! impl FormData for UploadedContent { -//! type Config = (); //! type Item = (); //! type Error = Error; //! -//! fn form(_: Option<&()>) -> Form { +//! fn form(_: &HttpRequest) -> Form { //! Form::new() //! .field("Hey", Field::text()) //! .field(