Skip to content

Commit

Permalink
Adding xdg to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ecton committed Sep 21, 2024
1 parent 357dbcb commit 8bed71c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
sudo apt-get update
sudo apt-get install -y \
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers libdbus-1-dev pkg-config
- uses: dtolnay/rust-toolchain@stable

Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
sudo apt-get update
sudo apt-get install -y \
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers libdbus-1-dev pkg-config
- name: Download mdbook
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# install dependencies
sudo apt-get update
sudo apt-get install -y \
libegl-mesa0 libgl1-mesa-dri libxcb-xfixes0-dev vulkan-sdk mesa-vulkan-drivers
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers libdbus-1-dev pkg-config
- uses: dtolnay/rust-toolchain@stable
with:
Expand Down
2 changes: 1 addition & 1 deletion src/animation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ pub trait IntoAnimate: Sized + Send + Sync {
/// Invokes `on_complete` after this animation finishes.
fn on_complete<F>(self, on_complete: F) -> OnCompleteAnimation<Self>
where
F: FnMut() + Send + Sync + 'static,
F: FnOnce() + Send + Sync + 'static,
{
OnCompleteAnimation::new(self, on_complete)
}
Expand Down
3 changes: 2 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ use kludgine::app::winit::error::EventLoopError;
use kludgine::app::{AppEvent, AsApplication, Monitors};
use parking_lot::{Mutex, MutexGuard};

use crate::animation;
use crate::fonts::FontCollection;
use crate::window::sealed::WindowCommand;
use crate::window::WindowHandle;
use crate::{animation, initialize_tracing};

/// A Cushy application that has not started running yet.
pub struct PendingApp {
Expand Down Expand Up @@ -73,6 +73,7 @@ impl Run for PendingApp {

impl Default for PendingApp {
fn default() -> Self {
initialize_tracing();
Self::new(DefaultRuntime::default())
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ use crate::widget::{
};
use crate::widgets::shortcuts::{ShortcutKey, ShortcutMap};
use crate::window::sealed::WindowCommand;
use crate::{initialize_tracing, App, ConstraintLimit};
use crate::{App, ConstraintLimit};

/// A platform-dependent window implementation.
pub trait PlatformWindowImplementation {
Expand Down Expand Up @@ -1102,7 +1102,6 @@ where
Behavior: WindowBehavior,
{
fn run(self) -> crate::Result {
initialize_tracing();
let mut app = PendingApp::default();
self.open(&mut app)?;
app.run()
Expand Down

0 comments on commit 8bed71c

Please sign in to comment.