| @@ -108,7 +108,7 @@ async fn test_channel_guest_promotion(cx_a: &mut TestAppContext, cx_b: &mut Test · 107 unmodified lines |
| 108 | 108 | assert!(project_b.read_with(cx_b, |project, cx| project.is_read_only(cx))); |
| 109 | 109 | assert!(editor_b.update(cx_b, |e, cx| e.read_only(cx))); |
| 110 | 110 | cx_b.update(|cx_b| { |
| 111 | | − assert!(room_b.read_with(cx_b, |room, cx| !room.can_use_microphone(cx))); |
| 111 | + assert!(room_b.read_with(cx_b, |room, _| !room.can_use_microphone())); |
| 112 | 112 | }); |
| 113 | 113 | assert!(room_b |
| 114 | 114 | .update(cx_b, |room, cx| room.share_microphone(cx)) |
| @@ -136,7 +136,7 @@ async fn test_channel_guest_promotion(cx_a: &mut TestAppContext, cx_b: &mut Test · 21 unmodified lines |
| 136 | 136 | |
| 137 | 137 | // B sees themselves as muted, and can unmute. |
| 138 | 138 | cx_b.update(|cx_b| { |
| 139 | | − assert!(room_b.read_with(cx_b, |room, cx| room.can_use_microphone(cx))); |
| 139 | + assert!(room_b.read_with(cx_b, |room, _| room.can_use_microphone())); |
| 140 | 140 | }); |
| 141 | 141 | room_b.read_with(cx_b, |room, _| assert!(room.is_muted())); |
| 142 | 142 | room_b.update(cx_b, |room, cx| room.toggle_mute(cx)); |
| @@ -231,7 +231,7 @@ async fn test_channel_requires_zed_cla(cx_a: &mut TestAppContext, cx_b: &mut Tes · 88 unmodified lines |
| 231 | 231 | .read(ActiveCall::global) |
| 232 | 232 | .update(cx_b, |call, _| call.room().unwrap().clone()); |
| 233 | 233 | cx_b.update(|cx_b| { |
| 234 | | − assert!(room_b.read_with(cx_b, |room, cx| !room.can_use_microphone(cx))); |
| 234 | + assert!(room_b.read_with(cx_b, |room, _| !room.can_use_microphone())); |
| 235 | 235 | }); |
| 236 | 236 | |
| 237 | 237 | // A tries to grant write access to B, but cannot because B has not |
| @@ -251,7 +251,7 @@ async fn test_channel_requires_zed_cla(cx_a: &mut TestAppContext, cx_b: &mut Tes · 13 unmodified lines |
| 251 | 251 | cx_a.run_until_parked(); |
| 252 | 252 | assert!(room_b.read_with(cx_b, |room, _| !room.can_share_projects())); |
| 253 | 253 | cx_b.update(|cx_b| { |
| 254 | | − assert!(room_b.read_with(cx_b, |room, cx| !room.can_use_microphone(cx))); |
| 254 | + assert!(room_b.read_with(cx_b, |room, _| !room.can_use_microphone())); |
| 255 | 255 | }); |
| 256 | 256 | |
| 257 | 257 | // A tries to grant write access to B, but cannot because B has not |
| @@ -271,7 +271,7 @@ async fn test_channel_requires_zed_cla(cx_a: &mut TestAppContext, cx_b: &mut Tes · 13 unmodified lines |
| 271 | 271 | cx_a.run_until_parked(); |
| 272 | 272 | assert!(room_b.read_with(cx_b, |room, _| !room.can_share_projects())); |
| 273 | 273 | cx_b.update(|cx_b| { |
| 274 | | − assert!(room_b.read_with(cx_b, |room, cx| room.can_use_microphone(cx))); |
| 274 | + assert!(room_b.read_with(cx_b, |room, _| room.can_use_microphone())); |
| 275 | 275 | }); |
| 276 | 276 | |
| 277 | 277 | // User B signs the zed CLA. |
| @@ -298,6 +298,6 @@ async fn test_channel_requires_zed_cla(cx_a: &mut TestAppContext, cx_b: &mut Tes · 20 unmodified lines |
| 298 | 298 | cx_a.run_until_parked(); |
| 299 | 299 | assert!(room_b.read_with(cx_b, |room, _| room.can_share_projects())); |
| 300 | 300 | cx_b.update(|cx_b| { |
| 301 | | − assert!(room_b.read_with(cx_b, |room, cx| room.can_use_microphone(cx))); |
| 301 | + assert!(room_b.read_with(cx_b, |room, _| room.can_use_microphone())); |
| 302 | 302 | }); |
| 303 | 303 | } |