History

Get collab test suite passing (#50214)

The test suite was failing with this error: methods `is_screen_capture_supported` and `screen_capture_sources` are never used. I added allow(dead_code) attribute on both methods to fix it action that was failing: https://github.com/zed-industries/zed/actions/runs/22444029970/job/64993825469 Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [ ] Done a self-review taking into account security and performance aspects - [ ] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A

Anthony Eid committed 8 months ago

Commit c767dcc1 parent 1ad9d591 file · +2 −0Browse files

Unified · Split

crates/gpui_linux/src/linux/platform.rs+2−0
@@ -55,10 +55,12 @@ pub(crate) trait LinuxClient { · 54 unmodified lines
55 fn display(&self, id: DisplayId) -> Option<Rc<dyn PlatformDisplay>>;55 fn display(&self, id: DisplayId) -> Option<Rc<dyn PlatformDisplay>>;
56 fn primary_display(&self) -> Option<Rc<dyn PlatformDisplay>>;56 fn primary_display(&self) -> Option<Rc<dyn PlatformDisplay>>;
57 57
58 #[allow(dead_code)]
58 fn is_screen_capture_supported(&self) -> bool {59 fn is_screen_capture_supported(&self) -> bool {
59 false60 false
60 }61 }
61 62
63 #[allow(dead_code)]
62 fn screen_capture_sources(64 fn screen_capture_sources(
63 &self,65 &self,
64 ) -> oneshot::Receiver<Result<Vec<Rc<dyn gpui::ScreenCaptureSource>>>> {66 ) -> oneshot::Receiver<Result<Vec<Rc<dyn gpui::ScreenCaptureSource>>>> {