diff --git a/api-test/src/api.rs b/api-test/src/api.rs index 5682920c..84b84822 100644 --- a/api-test/src/api.rs +++ b/api-test/src/api.rs @@ -2,9 +2,9 @@ use std::io; use std::path::Path; use failure::{bail, Error}; -use tokio::io::AsyncReadExt; use http::Response; use hyper::Body; +use tokio::io::AsyncReadExt; use proxmox::api::{api, router}; diff --git a/api-test/src/main.rs b/api-test/src/main.rs index a7476ed8..4d8a7d35 100644 --- a/api-test/src/main.rs +++ b/api-test/src/main.rs @@ -39,15 +39,10 @@ async fn main_do(www_dir: String) { let addr = ([0, 0, 0, 0], 3000).into(); // And a MakeService to handle each connection... - let service = make_service_fn(|_| { - async { - Ok::<_, hyper::Error>(service_fn(run_request)) - } - }); + let service = make_service_fn(|_| async { Ok::<_, hyper::Error>(service_fn(run_request)) }); // Then bind and serve... - let server = Server::bind(&addr) - .serve(service); + let server = Server::bind(&addr).serve(service); println!("Serving {} under http://localhost:3000/www/", www_dir); diff --git a/proxmox-api-macro/tests/basic.rs b/proxmox-api-macro/tests/basic.rs index 5b4f62d0..ec1660c4 100644 --- a/proxmox-api-macro/tests/basic.rs +++ b/proxmox-api-macro/tests/basic.rs @@ -75,9 +75,7 @@ async fn get_loopback(param: String) -> Result { returns: String })] fn non_async_test(param: String) -> proxmox::api::ApiFuture { - Box::pin(async { - proxmox::api::IntoApiOutput::into_api_output(param) - }) + Box::pin(async { proxmox::api::IntoApiOutput::into_api_output(param) }) } proxmox_api_macro::router! { diff --git a/proxmox-tools/src/vec.rs b/proxmox-tools/src/vec.rs index 7d0ed506..b82a905f 100644 --- a/proxmox-tools/src/vec.rs +++ b/proxmox-tools/src/vec.rs @@ -34,7 +34,6 @@ mod byte_vec; pub use byte_vec::*; - /// Create an uninitialized byte vector of a specific size. /// /// This is just a shortcut for: