mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +00:00
Make WindowId::primary() const (#6582)
# Objective - fixes https://github.com/bevyengine/bevy/issues/6577 ## Solution - simply add `const` to `primary()`.
This commit is contained in:
parent
1f8cc9dd67
commit
8f9556050a
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ impl WindowId {
|
|||
WindowId(Uuid::new_v4())
|
||||
}
|
||||
/// The [`WindowId`] for the primary window.
|
||||
pub fn primary() -> Self {
|
||||
pub const fn primary() -> Self {
|
||||
WindowId(Uuid::from_u128(0))
|
||||
}
|
||||
/// Get whether or not this [`WindowId`] is for the primary window.
|
||||
|
|
Loading…
Add table
Reference in a new issue