From 4978ab4fae51dcdea47bbf5f4a09a273d35840b8 Mon Sep 17 00:00:00 2001 From: Abdulla Abdurakhmanov Date: Sat, 27 Jan 2024 15:08:50 +0100 Subject: [PATCH] Less strict access to multipart functions to make them available for extensions --- src/multipart_form.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multipart_form.rs b/src/multipart_form.rs index 5201f9f..9f5dc82 100644 --- a/src/multipart_form.rs +++ b/src/multipart_form.rs @@ -8,14 +8,14 @@ pub struct FileMultipartData<'a> { pub data: &'a [u8], } -pub(crate) fn generate_multipart_boundary() -> String { +pub fn generate_multipart_boundary() -> String { format!( "----WebKitFormBoundarySlackMorphismRust{}", chrono::Utc::now().timestamp() ) } -pub(crate) fn create_multipart_file_content<'p, PT, TS>( +pub fn create_multipart_file_content<'p, PT, TS>( fields: &'p PT, multipart_boundary: &str, file: Option>,