Skip to content

Commit 718645c

Browse files
committed
Rename is_bit_clear to bit_is_clear, is_bit_set to bit_is_set
1 parent 9ed581c commit 718645c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/generate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -889,13 +889,13 @@ pub fn fields(
889889
enum_items.push(quote! {
890890
/// Returns `true` if the bit is clear (0)
891891
#[inline(always)]
892-
pub fn is_bit_clear(&self) -> bool {
892+
pub fn bit_is_clear(&self) -> bool {
893893
!self.#bits()
894894
}
895895

896896
/// Returns `true` if the bit is set (1)
897897
#[inline(always)]
898-
pub fn is_bit_set(&self) -> bool {
898+
pub fn bit_is_set(&self) -> bool {
899899
self.#bits()
900900
}
901901
});
@@ -1014,13 +1014,13 @@ pub fn fields(
10141014
pc_r_impl_items.push(quote! {
10151015
/// Returns `true` if the bit is clear (0)
10161016
#[inline(always)]
1017-
pub fn is_bit_clear(&self) -> bool {
1017+
pub fn bit_is_clear(&self) -> bool {
10181018
!self.#bits()
10191019
}
10201020

10211021
/// Returns `true` if the bit is set (1)
10221022
#[inline(always)]
1023-
pub fn is_bit_set(&self) -> bool {
1023+
pub fn bit_is_set(&self) -> bool {
10241024
self.#bits()
10251025
}
10261026
});

src/util.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ impl ToSanitizedSnakeCase for str {
9696
where,
9797
while,
9898
yield,
99-
bit_set,
100-
bit_clear,
10199
set_bit,
102100
clear_bit,
103101
bit,

0 commit comments

Comments
 (0)