mirror of https://github.com/fafhrd91/actix-web
chore(multipart): do not implement Copy on `MultipartConfig` (#4047)
This commit is contained in:
parent
5bc18551cd
commit
0a0b193c01
|
|
@ -47,7 +47,7 @@ enum Flow {
|
||||||
/// [`Multipart`] extractor configuration.
|
/// [`Multipart`] extractor configuration.
|
||||||
///
|
///
|
||||||
/// Add to your app data to have it picked up by [`Multipart`] extractors.
|
/// Add to your app data to have it picked up by [`Multipart`] extractors.
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub struct MultipartConfig {
|
pub struct MultipartConfig {
|
||||||
buffer_limit: usize,
|
buffer_limit: usize,
|
||||||
|
|
@ -74,7 +74,7 @@ impl MultipartConfig {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static DEFAULT_CONFIG: MultipartConfig = MultipartConfig {
|
const DEFAULT_CONFIG: MultipartConfig = MultipartConfig {
|
||||||
buffer_limit: DEFAULT_BUFFER_LIMIT,
|
buffer_limit: DEFAULT_BUFFER_LIMIT,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue