Skip to content

Commit 8f95560

Browse files
committed
Make WindowId::primary() const (#6582)
# Objective - fixes #6577 ## Solution - simply add `const` to `primary()`.
1 parent 1f8cc9d commit 8f95560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_window/src/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl WindowId {
9292
WindowId(Uuid::new_v4())
9393
}
9494
/// The [`WindowId`] for the primary window.
95-
pub fn primary() -> Self {
95+
pub const fn primary() -> Self {
9696
WindowId(Uuid::from_u128(0))
9797
}
9898
/// Get whether or not this [`WindowId`] is for the primary window.

0 commit comments

Comments
 (0)