Skip to content

Commit

Permalink
fix(ci): rust-version detection and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuklik committed Jun 18, 2024
1 parent 0f1fdfc commit a2252dc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
id: msrv
with:
file: 'Cargo.toml'
field: 'package.rust-version'
field: 'workspace.package.rust-version'
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.msrv.outputs.value }}
Expand Down
8 changes: 6 additions & 2 deletions common/benches/compression.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use common::compression::{Compressor, Decompressor};
use criterion::{black_box, criterion_group, criterion_main, Criterion};

fn generate_data() -> (Box<[u8]>, Box<[u8]>) {
let v1 = vec![120; 1920 * 1080 * 3];
Expand Down Expand Up @@ -61,7 +61,11 @@ pub fn compression_and_decompression(c: &mut Criterion) {
let mut decompressor = Decompressor::new();
decomp.bench_function("Full", |b| {
b.iter(|| {
black_box(decompressor.decompress(&bitpack, &mut canvas, common::ipc::PixelFormat::Xrgb))
black_box(decompressor.decompress(
&bitpack,
&mut canvas,
common::ipc::PixelFormat::Xrgb,
))
})
});

Expand Down
2 changes: 1 addition & 1 deletion daemon/src/animations/transitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::{
time::{Duration, Instant},
};

use log::debug;
use common::ipc::{Position, TransitionType};
use log::debug;

use crate::{
wallpaper::{AnimationToken, Wallpaper},
Expand Down
4 changes: 2 additions & 2 deletions daemon/src/wallpaper.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use log::{debug, error, warn};
use common::ipc::{BgImg, BgInfo, Scale};
use log::{debug, error, warn};

use std::{
num::NonZeroI32,
Expand Down Expand Up @@ -487,7 +487,7 @@ pub(crate) fn commit_wallpapers(wallpapers: &[Arc<Wallpaper>]) {
impl Drop for Wallpaper {
fn drop(&mut self) {
// note we shouldn't panic in a drop implementation

if let Err(e) = wp_viewport::req::destroy(self.wp_viewport) {
error!("error destroying wp_viewport: {e:?}");
}
Expand Down
2 changes: 1 addition & 1 deletion daemon/src/wayland/globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ use rustix::{
net::SocketAddrAny,
};

use log::{debug, error, info};
use common::ipc::PixelFormat;
use log::{debug, error, info};

use super::{ObjectId, ObjectManager, WlDynObj};
use std::{
Expand Down

0 comments on commit a2252dc

Please sign in to comment.