Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Aug 2, 2024
1 parent a8fe681 commit 46ba28a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MOLC := moleculec
MOLC_VERSION := 0.7.5
VERBOSE := $(if ${CI},--verbose,)
CLIPPY_OPTS := -D warnings -D clippy::clone_on_ref_ptr -D clippy::redundant_clone -D clippy::enum_glob_use -D clippy::fallible_impl_from \
-A clippy::mutable_key_type -A clippy::upper_case_acronyms
-A clippy::mutable_key_type -A clippy::upper_case_acronyms -A clippy::needless_return
CKB_TEST_ARGS := -c 4 ${CKB_TEST_ARGS}
CKB_FEATURES ?= deadlock_detection,with_sentry
ALL_FEATURES := deadlock_detection,with_sentry,with_dns_seeding,profiling,march-native
Expand Down
4 changes: 2 additions & 2 deletions script/src/syscalls/load_cell_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ where
if let Source::Group(_) = Source::parse_from_u64(source)? {
source = source & SOURCE_ENTRY_MASK | SOURCE_GROUP_FLAG;
} else {
source = source & SOURCE_ENTRY_MASK;
source &= SOURCE_ENTRY_MASK;
}
let data_piece_id = match DataPieceId::try_from((source, index, 0)) {
Ok(id) => id,
Expand Down Expand Up @@ -111,7 +111,7 @@ where
if let Source::Group(_) = Source::parse_from_u64(source)? {
source = source & SOURCE_ENTRY_MASK | SOURCE_GROUP_FLAG;
} else {
source = source & SOURCE_ENTRY_MASK;
source &= SOURCE_ENTRY_MASK;
}
let data_piece_id = match DataPieceId::try_from((source, index, 0)) {
Ok(id) => id,
Expand Down
2 changes: 1 addition & 1 deletion script/src/syscalls/spawn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ where
if let Source::Group(_) = Source::parse_from_u64(source)? {
source = source & SOURCE_ENTRY_MASK | SOURCE_GROUP_FLAG;
} else {
source = source & SOURCE_ENTRY_MASK;
source &= SOURCE_ENTRY_MASK;
}
let data_piece_id = match DataPieceId::try_from((source, index, place)) {
Ok(id) => id,
Expand Down

0 comments on commit 46ba28a

Please sign in to comment.