Skip to content

Commit

Permalink
Fixed a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Apr 22, 2024
1 parent 493505e commit 849e500
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/multipart_form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ pub struct FileMultipartData<'a> {
pub data: &'a [u8],
}

#[cfg(feature = "hyper")]
pub fn generate_multipart_boundary() -> String {
format!(
"----WebKitFormBoundarySlackMorphismRust{}",
chrono::Utc::now().timestamp()
)
}

#[cfg(feature = "hyper")]
pub fn create_multipart_file_content<'p, PT, TS>(
fields: &'p PT,
multipart_boundary: &str,
Expand Down

0 comments on commit 849e500

Please sign in to comment.