mirror of https://github.com/fafhrd91/actix-web
chore(multipart): do not implement Copy on `MultipartConfig`
This commit is contained in:
parent
1a980855f0
commit
04c61a475b
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue