Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 2, 2023
1 parent 71b1f5e commit 03f803d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/std/src/query/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ impl ContractInfoResponse {
note = "Use ContractInfoResponse::default() and mutate the fields you want to set."
)]
pub fn new(code_id: u64, creator: impl Into<String>) -> Self {
let mut out = ContractInfoResponse::default();
out.code_id = code_id;
out.creator = creator.into();
out
ContractInfoResponse {
code_id,
creator: creator.into(),
..Default::default()
}
}
}

0 comments on commit 03f803d

Please sign in to comment.