Skip to content

Commit

Permalink
method order
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Jan 12, 2024
1 parent 691f819 commit bf98548
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/s3s/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ pub struct S3Response<T> {
}

impl<T> S3Response<T> {
pub fn with_headers(output: T, headers: HeaderMap<HeaderValue>) -> Self {
pub fn new(output: T) -> Self {
Self {
output,
headers,
headers: HeaderMap::new(),
extensions: Extensions::new(),
}
}

pub fn new(output: T) -> Self {
pub fn with_headers(output: T, headers: HeaderMap<HeaderValue>) -> Self {
Self {
output,
headers: HeaderMap::new(),
headers,
extensions: Extensions::new(),
}
}
Expand Down

0 comments on commit bf98548

Please sign in to comment.