8000 sdk/rust: fix clippy by a5-pickle · Pull Request #4327 · wormhole-foundation/wormhole · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sdk/rust: fix clippy #4327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cosmwasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions cosmwasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ overflow-checks = true

[workspace.dependencies.serde_wormhole]
version = "0.1.0"
path = "../sdk/rust/serde_wormhole"

[workspace.dependencies.wormhole-sdk]
package = "wormhole-vaas-serde"
version = "0.1.0"
path = "../sdk/rust/vaas-serde"

[patch.crates-io]
accountant = { path = "packages/accountant" }
Expand Down
4 changes: 2 additions & 2 deletions sdk/rust/vaas-serde/src/arraystring.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! A module for serializing/deserializing a `BString` as a fixed-width 32 byte array.

use std::{convert::identity, fmt, iter::repeat};
use std::{convert::identity, fmt, iter::repeat_n};

use bstr::BString;
use serde::{
Expand All @@ -23,7 +23,7 @@ where
}

let mut tup = serializer.serialize_tuple(32)?;
for e in repeat(&0u8).take(32 - l).chain(v) {
for e in repeat_n(&0u8, 32 - l).chain(v) {
tup.serialize_element(e)?;
}

Expand Down
Loading
0