chore(multipart): do not implement Copy on `MultipartConfig` (#4047)

This commit is contained in:
Yuki Okushi 2026-04-27 03:49:43 +09:00 committed by GitHub
parent 5bc18551cd
commit 0a0b193c01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ enum Flow {
/// [`Multipart`] extractor configuration.
///
/// Add to your app data to have it picked up by [`Multipart`] extractors.
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Debug)]
#[non_exhaustive]
pub struct MultipartConfig {
buffer_limit: usize,
@ -74,7 +74,7 @@ impl MultipartConfig {
}
}
static DEFAULT_CONFIG: MultipartConfig = MultipartConfig {
const DEFAULT_CONFIG: MultipartConfig = MultipartConfig {
buffer_limit: DEFAULT_BUFFER_LIMIT,
};