Skip to content

Commit

Permalink
refactor: Simplify logging and match statement for response in sube/s…
Browse files Browse the repository at this point in the history
…rc/lib.rs
  • Loading branch information
S0c5 committed May 1, 2024
1 parent 99459a8 commit 78beb47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sube/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ where
)
.await?;

log::info!("{:?}", response);

match response {
Response::Value(value) => {

match response {
Response::Value(value) => {
log::info!("{:?}", serde_json::to_string(&value));
let bytes: [u8; 8] = value.as_ref()[..8].try_into().expect("fits");
let nonce = u64::from_le_bytes(bytes);
Ok(nonce)
Expand Down

0 comments on commit 78beb47

Please sign in to comment.