Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Dec 14, 2024
1 parent 0616681 commit 1dadae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions omniqueue/src/backends/redis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ fn internal_to_list_payload(
) -> Vec<u8> {
let id = delayed_key_id();
let num_receives = num_receives.to_string();
let mut result =
Vec::with_capacity(id.len() + num_receives.as_bytes().len() + payload.len() + 3);
let mut result = Vec::with_capacity(id.len() + num_receives.len() + payload.len() + 3);
result.extend(id.as_bytes());
result.push(b'#');
result.extend(num_receives.as_bytes());
Expand Down
2 changes: 1 addition & 1 deletion omniqueue/tests/it/redis_fallback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ async fn test_backward_compatible() {
// Old payload format:
let id = svix_ksuid::Ksuid::new(None, None).to_base62();
let org_payload_str = serde_json::to_string(&org_payload).unwrap();
let mut payload = Vec::with_capacity(id.len() + org_payload_str.as_bytes().len() + 1);
let mut payload = Vec::with_capacity(id.len() + org_payload_str.len() + 1);
payload.extend(id.as_bytes());
payload.push(b'|');
payload.extend(org_payload_str.as_bytes());
Expand Down

0 comments on commit 1dadae2

Please sign in to comment.