Skip to content

Commit

Permalink
Chore: add default for unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
vigith authored and drmingdrmer committed Jan 9, 2025
1 parent e723789 commit 52629cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/raft-kv-memstore-grpc/src/pb_impl/impl_vote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl fmt::Display for Vote {
write!(
f,
"<{}:{}>",
self.leader_id.as_ref().unwrap(),
self.leader_id.as_ref().unwrap_or(&Default::default()),
if self.is_committed() { "Q" } else { "-" }
)
}
Expand Down

0 comments on commit 52629cb

Please sign in to comment.