Skip to content

Commit

Permalink
fix: test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Sep 26, 2023
1 parent d3252c3 commit 9b8e937
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
sudo apt-get install -y libxkbcommon-dev libwayland-dev
- name: Run tests
run: |
cargo test --verbose --workspace --features "wayland"
cargo test --verbose --workspace --features "winit wgpu svg canvas qr_code lazy debug tokio palette web-colors system a11y"
- name: test wayland
if: matrix.os == 'ubuntu-latest'
run: |
cargo test --verbose --features "wayland wgpu svg canvas qr_code lazy debug tokio palette web-colors system a11y"
web:
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions src/wayland/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ use crate::{
/// says "Hello, world!":
///
/// ```no_run
/// use iced::{Element, Sandbox, Settings};
/// use iced::{Element, Sandbox, Settings, window::Id};
///
/// pub fn main() -> iced::Result {
/// Hello::run(Settings::default())
Expand All @@ -83,9 +83,13 @@ use crate::{
/// // This application has no interactions
/// }
///
/// fn view(&self) -> Element<Self::Message> {
/// fn view(&self, _: Id) -> Element<Self::Message> {
/// "Hello, world!".into()
/// }
///
/// fn close_requested(&self, _: Id) -> Self::Message {
/// unimplemented!()
/// }
/// }
/// ```
pub trait Sandbox {
Expand Down

0 comments on commit 9b8e937

Please sign in to comment.