Skip to content

Commit 4b0a7d3

Browse files
jimblandyErichDonGubler
authored andcommitted
[core] Rename LockRankSet::name to member_name.
1 parent 3b6112d commit 4b0a7d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

wgpu-core/src/lock/rank.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ macro_rules! define_lock_ranks {
6363
}
6464

6565
impl LockRankSet {
66-
pub fn name(self) -> &'static str {
66+
pub fn member_name(self) -> &'static str {
6767
match self {
6868
$(
6969
LockRankSet:: $name => $member,

wgpu-core/src/lock/ranked.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ fn acquire(new_rank: LockRank, location: &'static Location<'static>) -> LockStat
144144
last locked {:<35} at {}\n\
145145
now locking {:<35} at {}\n\
146146
Locking {} after locking {} is not permitted.",
147-
last_rank.bit.name(),
147+
last_rank.bit.member_name(),
148148
last_location,
149-
new_rank.bit.name(),
149+
new_rank.bit.member_name(),
150150
location,
151-
new_rank.bit.name(),
152-
last_rank.bit.name(),
151+
new_rank.bit.member_name(),
152+
last_rank.bit.member_name(),
153153
);
154154
}
155155
LOCK_STATE.set(LockState {

0 commit comments

Comments
 (0)