mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
[core] Rename LockRankSet::name
to member_name
.
This commit is contained in:
parent
0ce5996891
commit
f56914cea9
@ -63,7 +63,7 @@ macro_rules! define_lock_ranks {
|
||||
}
|
||||
|
||||
impl LockRankSet {
|
||||
pub fn name(self) -> &'static str {
|
||||
pub fn member_name(self) -> &'static str {
|
||||
match self {
|
||||
$(
|
||||
LockRankSet:: $name => $member,
|
||||
|
@ -144,12 +144,12 @@ fn acquire(new_rank: LockRank, location: &'static Location<'static>) -> LockStat
|
||||
last locked {:<35} at {}\n\
|
||||
now locking {:<35} at {}\n\
|
||||
Locking {} after locking {} is not permitted.",
|
||||
last_rank.bit.name(),
|
||||
last_rank.bit.member_name(),
|
||||
last_location,
|
||||
new_rank.bit.name(),
|
||||
new_rank.bit.member_name(),
|
||||
location,
|
||||
new_rank.bit.name(),
|
||||
last_rank.bit.name(),
|
||||
new_rank.bit.member_name(),
|
||||
last_rank.bit.member_name(),
|
||||
);
|
||||
}
|
||||
LOCK_STATE.set(LockState {
|
||||
|
Loading…
Reference in New Issue
Block a user