Skip to content

Commit 5782c80

Browse files
committed
appkit: Removing this PR from the changelog.
1 parent a371b8f commit 5782c80

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

winit-appkit/src/monitor.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,8 @@ mod tests {
352352

353353
#[test]
354354
fn uuid_stable() {
355-
let primary_id = CGMainDisplayID();
356-
357-
let handle_a = MonitorHandle::new(primary_id).unwrap();
358-
let handle_b = MonitorHandle::new(primary_id).unwrap();
355+
let handle_a = MonitorHandle::new(1).unwrap();
356+
let handle_b = MonitorHandle::new(1).unwrap();
359357
assert_eq!(handle_a, handle_b);
360358
assert_eq!(handle_a.display_id(), handle_b.display_id());
361359
assert_eq!(handle_a.uuid(), handle_b.uuid());
@@ -370,10 +368,8 @@ mod tests {
370368
/// Test the MonitorHandle::new fallback.
371369
#[test]
372370
fn monitorhandle_from_zero() {
373-
let primary_id = CGMainDisplayID();
374-
375371
let handle0 = MonitorHandle::new(0).unwrap();
376-
let handle1 = MonitorHandle::new(primary_id).unwrap();
372+
let handle1 = MonitorHandle::new(1).unwrap();
377373
assert_eq!(handle0, handle1);
378374
assert_eq!(handle0.display_id(), handle1.display_id());
379375
assert_eq!(handle0.uuid(), handle1.uuid());

0 commit comments

Comments
 (0)