Skip to content

Commit 085934e

Browse files
committed
clippy
1 parent 6a3f215 commit 085934e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/webserver/http_request_info.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub struct RequestInfo {
4141
}
4242

4343
impl RequestInfo {
44+
#[must_use]
4445
pub fn clone_without_variables(&self) -> Self {
4546
Self {
4647
method: self.method.clone(),
@@ -62,8 +63,8 @@ impl RequestInfo {
6263
impl Clone for RequestInfo {
6364
fn clone(&self) -> Self {
6465
let mut clone = self.clone_without_variables();
65-
clone.get_variables = self.get_variables.clone();
66-
clone.post_variables = self.post_variables.clone();
66+
clone.get_variables.clone_from(&self.get_variables);
67+
clone.post_variables.clone_from(&self.post_variables);
6768
clone
6869
}
6970
}

0 commit comments

Comments
 (0)