Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 27, 2022
1 parent d738d99 commit a6c39b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/bin/rgb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ fn main() -> Result<(), Error> {
fs::write(psbt_out.unwrap_or(psbt_in), psbt_bytes)?;
}
PsbtCommand::Analyze { psbt } => {
let psbt_bytes = fs::read(&psbt)?;
let psbt_bytes = fs::read(psbt)?;
let psbt = Psbt::deserialize(&psbt_bytes)?;

println!("contracts:");
Expand Down Expand Up @@ -445,7 +445,7 @@ fn main() -> Result<(), Error> {
println!(
" - {}/{:#04x}/{}: {}",
prefix,
u8::from(key.subtype),
key.subtype,
key.key.to_hex(),
value.to_hex()
);
Expand All @@ -459,7 +459,7 @@ fn main() -> Result<(), Error> {
println!(
" - {}/{:#04x}/{}: {}",
prefix,
u8::from(key.subtype),
key.subtype,
key.key.to_hex(),
value.to_hex()
);
Expand All @@ -474,7 +474,7 @@ fn main() -> Result<(), Error> {
println!(
" - {}/{:#04x}/{}: {}",
prefix,
u8::from(key.subtype),
key.subtype,
key.key.to_hex(),
value.to_hex()
);
Expand Down
6 changes: 3 additions & 3 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl ContractState {
if owned_value.seal == outpoint {
state.insert(OutpointState {
node_outpoint: owned_value.outpoint,
state: owned_value.state.clone().into(),
state: owned_value.state.into(),
});
}
}
Expand Down Expand Up @@ -243,7 +243,7 @@ impl ContractState {
.or_default()
.insert(OutpointState {
node_outpoint: owned_value.outpoint,
state: owned_value.state.clone().into(),
state: owned_value.state.into(),
});
}
for owned_data in &self.owned_data {
Expand Down Expand Up @@ -287,7 +287,7 @@ impl ContractState {
.or_default()
.insert(OutpointState {
node_outpoint: owned_value.outpoint,
state: owned_value.state.clone().into(),
state: owned_value.state.into(),
});
}
}
Expand Down

0 comments on commit a6c39b5

Please sign in to comment.