Skip to content
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

fix clippy warnings #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion crates/sui-crypto/src/zklogin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fn verify_extended_claim(
BASE64_URL_CHARSET
.find(c)
.map(|index| index as u8)
.map(|index| (0..6).rev().map(move |i| index >> i & 1))
.map(|index| (0..6).rev().map(move |i| (index >> i) & 1))
.ok_or_else(|| SignatureError::from_source("base64_to_bitarry invalid input"))
})
.flatten_ok()
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-sdk-types/src/execution_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum ExecutionStatus {
/// The BCS serialized form for this type is defined by the following ABNF:
///
/// ```text
///
///
/// execution-error = insufficient-gas
/// =/ invalid-gas-object
/// =/ invariant-violation
Expand Down
8 changes: 4 additions & 4 deletions crates/sui-sdk-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
//! specifically for their use case. Below is a list of the available feature flags.
//!
//! - `serde`: Enables support for serializing and deserializing types to/from BCS utilizing
//! [serde] library.
//! [serde] library.
//! - `rand`: Enables support for generating random instances of a number of types via the [rand]
//! library.
//! library.
//! - `hash`: Enables support for hashing, which is required for deriving addresses and calculating
//! digests for various types.
//! digests for various types.
//! - `proptest`: Enables support for the [proptest] library by providing implementations of
//! [proptest::arbitrary::Arbitrary] for many types.
//! [proptest::arbitrary::Arbitrary] for many types.
//!
//! [feature flags]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section
//! [serde]: https://docs.rs/serde
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-transaction-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl TransactionBuilder {
///
/// - `modules`: is the modules' bytecode for the modules to be published
/// - `dependencies`: is the list of IDs of the transitive dependencies of the package to be
/// upgraded
/// upgraded
/// - `package`: is the ID of the current package being upgraded
/// - `ticket`: is the upgrade ticket
///
Expand Down