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

This commit is contained in:
Yuki Okushi 2026-04-26 07:15:25 +09:00
parent 1a980855f0
commit 04c61a475b
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,
};