mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
style: use Self to avoid unnecessary repetition (#3396)
This commit is contained in:
@@ -25,7 +25,7 @@ impl MultipartForm {
|
||||
/// let form = MultipartForm::with_parts(parts);
|
||||
/// ```
|
||||
pub fn with_parts(parts: Vec<Part>) -> Self {
|
||||
MultipartForm { parts }
|
||||
Self { parts }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user