Skip to content

Commit

Permalink
use as_be_bytes an ci improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
sistemd committed Mar 25, 2024
1 parent 311a53c commit f46d11a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: CI
on:
workflow_dispatch:
push:
pull_request:
# Daily cron job used to clear and rebuild cache (https://github.com/Swatinem/rust-cache/issues/181).
schedule:
- cron: '0 0 * * *'
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/src/connection/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ pub(crate) mod dto {
where
S: serde::Serializer,
{
let bytes = self.0.to_be_bytes();
let bytes = self.0.as_be_bytes();
let zeros = bytes.iter().take_while(|&&x| x == 0).count();
bytes[zeros..].serialize(serializer)
}
Expand Down

0 comments on commit f46d11a

Please sign in to comment.