mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-25 00:00:23 +02:00
Fix lint warnings (#1267)
This commit is contained in:
@@ -80,7 +80,7 @@ where
|
||||
E: Clone,
|
||||
{
|
||||
fn clone(&self) -> Self {
|
||||
Self(self.0.clone(), self.1.clone())
|
||||
Self(self.0.clone(), self.1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ mod tests {
|
||||
);
|
||||
|
||||
let input = Input {
|
||||
foo: "bar".to_string(),
|
||||
foo: "bar".to_owned(),
|
||||
};
|
||||
|
||||
let client = TestClient::new(app);
|
||||
@@ -264,7 +264,7 @@ mod tests {
|
||||
let app = Router::new().route("/", post(|_: ProtoBuf<Expected>| async {}));
|
||||
|
||||
let input = Input {
|
||||
foo: "bar".to_string(),
|
||||
foo: "bar".to_owned(),
|
||||
};
|
||||
|
||||
let client = TestClient::new(app);
|
||||
@@ -299,7 +299,7 @@ mod tests {
|
||||
);
|
||||
|
||||
let input = Input {
|
||||
foo: "bar".to_string(),
|
||||
foo: "bar".to_owned(),
|
||||
};
|
||||
|
||||
let client = TestClient::new(app);
|
||||
|
||||
Reference in New Issue
Block a user