Skip to content

Commit 03f803d

Browse files
committed
Make clippy happy
1 parent 71b1f5e commit 03f803d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/std/src/query/wasm.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ impl ContractInfoResponse {
5454
note = "Use ContractInfoResponse::default() and mutate the fields you want to set."
5555
)]
5656
pub fn new(code_id: u64, creator: impl Into<String>) -> Self {
57-
let mut out = ContractInfoResponse::default();
58-
out.code_id = code_id;
59-
out.creator = creator.into();
60-
out
57+
ContractInfoResponse {
58+
code_id,
59+
creator: creator.into(),
60+
..Default::default()
61+
}
6162
}
6263
}

0 commit comments

Comments
 (0)