Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions anvil/src/input_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ use smithay::{
};

impl<BackendData: Backend> AnvilState<BackendData> {
// Allow in this method because of existing usage
#[allow(clippy::uninlined_format_args)]
fn process_common_key_action(&mut self, action: KeyAction) {
match action {
KeyAction::None => (),
Expand Down
2 changes: 2 additions & 0 deletions anvil/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ static POSSIBLE_BACKENDS: &[&str] = &[
static GLOBAL: profiling::tracy_client::ProfiledAllocator<std::alloc::System> =
profiling::tracy_client::ProfiledAllocator::new(std::alloc::System, 10);

// Allow in this function because of existing usage
#[allow(clippy::uninlined_format_args)]
fn main() {
if let Ok(env_filter) = tracing_subscriber::EnvFilter::try_from_default_env() {
tracing_subscriber::fmt()
Expand Down
2 changes: 2 additions & 0 deletions anvil/src/udev.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Allow in this module because of existing usage
#![allow(clippy::uninlined_format_args)]
use std::{
collections::hash_map::HashMap,
io,
Expand Down
2 changes: 1 addition & 1 deletion src/backend/egl/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ impl EGLBufferReader {
/// Try to receive [`EGLBuffer`] from a given [`WlBuffer`].
///
/// In case the buffer is not managed by EGL (but e.g. the [`wayland::shm` module](crate::wayland::shm))
/// a [`BufferAccessError::NotManaged`](crate::backend::egl::BufferAccessError::NotManaged) is returned.
/// a [`BufferAccessError::NotManaged`] is returned.
#[profiling::function]
pub fn egl_buffer_contents(
&self,
Expand Down
2 changes: 2 additions & 0 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Allow in this module because of existing usage
#![allow(clippy::uninlined_format_args)]
//! Backend (rendering/input) helpers
//!
//! This module provides helpers for interaction with the operating system.
Expand Down
2 changes: 1 addition & 1 deletion src/input/keyboard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ impl<D: SeatHandler + 'static> KeyboardHandle<D> {
/// [`FilterResult::Intercept`] a value can be passed to be returned by the whole function.
/// This mechanism can be used to implement compositor-level key bindings for example.
///
/// The module [`keysyms`](crate::input::keyboard::keysyms) exposes definitions of all possible keysyms
/// The module [`keysyms`] exposes definitions of all possible keysyms
/// to be compared against. This includes non-character keysyms, such as XF86 special keys.
#[instrument(level = "trace", parent = &self.arc.span, skip(self, data, filter))]
pub fn input<T, F>(
Expand Down
6 changes: 1 addition & 5 deletions src/utils/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ impl Eq for Serial {}
impl PartialOrd for Serial {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
let distance = if self.0 > other.0 {
self.0 - other.0
} else {
other.0 - self.0
};
let distance = self.0.abs_diff(other.0);
if distance < u32::MAX / 2 {
self.0.partial_cmp(&other.0)
} else {
Expand Down
2 changes: 2 additions & 0 deletions src/wayland/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Allow in this module because of existing usage
#![allow(clippy::uninlined_format_args)]
//! Protocol-related utilities
//!
//! This module contains several handlers to manage the Wayland protocol
Expand Down
2 changes: 1 addition & 1 deletion src/wayland/selection/data_device/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ where
/// You need to provide the available mime types for this selection.
///
/// Whenever a client requests to read the selection, your callback will
/// receive a [`SelectionHandler::send_selection`](crate::wayland::selection::SelectionHandler::send_selection) event.
/// receive a [`SelectionHandler::send_selection`] event.
#[instrument(name = "wayland_data_device", level = "debug", skip(dh, seat, user_data), fields(seat = seat.name()))]
pub fn set_data_device_selection<D>(
dh: &DisplayHandle,
Expand Down
2 changes: 2 additions & 0 deletions src/xwayland/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Allow in this module because of existing usage
#![allow(clippy::uninlined_format_args)]
//! XWayland utilities
//!
//! This module contains helpers to manage XWayland from your compositor, in order
Expand Down
Loading