mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
[core] Rename LockRankSet::name to member_name.
This commit is contained in:
1 parent
0ce5996891
commit
f56914cea9
2 files changed
+5
-5
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user