From 7e96a152bfb83b8f849d732e6c4c26b2efc012ce Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Tue, 29 Oct 2024 23:03:45 -0700 Subject: [PATCH] Remove typos --- rwf/src/http/form.rs | 11 ----------- rwf/src/http/server.rs | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/rwf/src/http/form.rs b/rwf/src/http/form.rs index bb66b68a..3ea99455 100644 --- a/rwf/src/http/form.rs +++ b/rwf/src/http/form.rs @@ -15,14 +15,3 @@ impl FromFormData for FormData { Ok(form_data.clone()) } } - -pub struct FormTest { - name: Option, -} - -impl FromFormData for FormTest { - fn from_form_data(form_data: &FormData) -> Result { - let name = form_data.get::("name"); - Ok(Self { name }) - } -} diff --git a/rwf/src/http/server.rs b/rwf/src/http/server.rs index 395de90f..560d7f27 100644 --- a/rwf/src/http/server.rs +++ b/rwf/src/http/server.rs @@ -179,7 +179,7 @@ impl Server { let _ = stream.flush().await; } Err(err) => { - debug!("2 {} error {:?}", peer_addr, err); + debug!("{} error {:?}", peer_addr, err); } } }