From 849e500ebc784f752dfa01804f521757136199d9 Mon Sep 17 00:00:00 2001 From: Abdulla Abdurakhmanov Date: Mon, 22 Apr 2024 12:48:17 +0200 Subject: [PATCH] Fixed a warning --- src/multipart_form.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/multipart_form.rs b/src/multipart_form.rs index 9f5dc82..1cd8943 100644 --- a/src/multipart_form.rs +++ b/src/multipart_form.rs @@ -8,6 +8,7 @@ pub struct FileMultipartData<'a> { pub data: &'a [u8], } +#[cfg(feature = "hyper")] pub fn generate_multipart_boundary() -> String { format!( "----WebKitFormBoundarySlackMorphismRust{}", @@ -15,6 +16,7 @@ pub fn generate_multipart_boundary() -> String { ) } +#[cfg(feature = "hyper")] pub fn create_multipart_file_content<'p, PT, TS>( fields: &'p PT, multipart_boundary: &str,