Skip to content

Commit

Permalink
CI: replace cfg_attr rustfmt with #[rustfmt::skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeissl committed May 5, 2024
1 parent 831899a commit 54aee11
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 15 deletions.
5 changes: 4 additions & 1 deletion wayland-protocols-misc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
#![warn(missing_docs)]
#![forbid(improper_ctypes, unsafe_op_in_unsafe_fn)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(rustfmt, rustfmt_skip)]

#[macro_use]
mod protocol_macro;

#[rustfmt::skip]
pub mod gtk_primary_selection {
//! Gtk primary selection protocol
//!
Expand Down Expand Up @@ -65,6 +65,7 @@ pub mod gtk_primary_selection {
wayland_protocol!("./protocols/gtk-primary-selection.xml", []);
}

#[rustfmt::skip]
pub mod zwp_input_method_v2 {
//! Input method v2 unstable
//!
Expand All @@ -89,6 +90,7 @@ pub mod zwp_input_method_v2 {
wayland_protocol!("./protocols/input-method-unstable-v2.xml", [wayland_protocols::wp::text_input::zv3]);
}

#[rustfmt::skip]
pub mod zwp_virtual_keyboard_v1 {
//! Virtual keyboard v1 unstable
//!
Expand All @@ -101,6 +103,7 @@ pub mod zwp_virtual_keyboard_v1 {
wayland_protocol!("./protocols/virtual-keyboard-unstable-v1.xml", []);
}

#[rustfmt::skip]
pub mod server_decoration {
//! KDE server decoration protocol
//!
Expand Down
25 changes: 24 additions & 1 deletion wayland-protocols-plasma/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,67 +9,76 @@

#![forbid(improper_ctypes, unsafe_op_in_unsafe_fn)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(rustfmt, rustfmt_skip)]

#[macro_use]
#[rustfmt::skip]
mod protocol_macro;

#[rustfmt::skip]
pub mod appmenu {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/appmenu.xml",
[]
);
}

#[rustfmt::skip]
pub mod blur {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/blur.xml",
[]
);
}

#[rustfmt::skip]
pub mod contrast {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/contrast.xml",
[]
);
}

#[rustfmt::skip]
pub mod dpms {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/dpms.xml",
[]
);
}

#[rustfmt::skip]
pub mod fake_input {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/fake-input.xml",
[]
);
}

#[rustfmt::skip]
pub mod fullscreen_shell {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/fullscreen-shell.xml",
[]
);
}

#[rustfmt::skip]
pub mod idle {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/idle.xml",
[]
);
}

#[rustfmt::skip]
pub mod keystate {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/keystate.xml",
[]
);
}

#[rustfmt::skip]
pub mod output_device {
pub mod v1 {
wayland_protocol!(
Expand All @@ -86,6 +95,7 @@ pub mod output_device {
}
}

#[rustfmt::skip]
pub mod output_management {
pub mod v1 {
wayland_protocol!(
Expand All @@ -103,6 +113,7 @@ pub mod output_management {
}


#[rustfmt::skip]
pub mod primary_output {
pub mod v1 {
wayland_protocol!(
Expand All @@ -112,34 +123,39 @@ pub mod primary_output {
}
}

#[rustfmt::skip]
pub mod plasma_shell {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/plasma-shell.xml",
[]
);
}

#[rustfmt::skip]
pub mod plasma_virtual_desktop {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/plasma-virtual-desktop.xml",
[]
);
}

#[rustfmt::skip]
pub mod plasma_window_management {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/plasma-window-management.xml",
[]
);
}

#[rustfmt::skip]
pub mod remote_access {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/remote-access.xml",
[]
);
}

#[rustfmt::skip]
pub mod screencast {
pub mod v1 {
wayland_protocol!(
Expand All @@ -149,41 +165,47 @@ pub mod screencast {
}
}

#[rustfmt::skip]
pub mod server_decoration_palette {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/server-decoration-palette.xml",
[]
);
}

#[rustfmt::skip]
pub mod server_decoration {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/server-decoration.xml",
[]
);
}

#[rustfmt::skip]
pub mod shadow {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/shadow.xml",
[]
);
}

#[rustfmt::skip]
pub mod slide {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/slide.xml",
[]
);
}

#[rustfmt::skip]
pub mod surface_extension {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/surface-extension.xml",
[]
);
}

#[rustfmt::skip]
pub mod text_input {
pub mod v1 {
wayland_protocol!(
Expand All @@ -200,6 +222,7 @@ pub mod text_input {
}
}

#[rustfmt::skip]
pub mod wayland_eglstream_controller {
wayland_protocol!(
"./plasma-wayland-protocols/src/protocols/wayland-eglstream-controller.xml",
Expand Down
11 changes: 10 additions & 1 deletion wayland-protocols-wlr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#![warn(missing_docs)]
#![forbid(improper_ctypes, unsafe_op_in_unsafe_fn)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(rustfmt, rustfmt_skip)]

#[macro_use]
mod protocol_macro;

#[rustfmt::skip]
pub mod data_control {
//! Control data devices, particularly the clipboard.
//!
Expand All @@ -30,6 +30,7 @@ pub mod data_control {
}
}

#[rustfmt::skip]
pub mod export_dmabuf {
//! A protocol for low overhead screen content capturing
//!
Expand All @@ -44,6 +45,7 @@ pub mod export_dmabuf {
}
}

#[rustfmt::skip]
pub mod foreign_toplevel {
//! List and control opened apps
//!
Expand All @@ -58,6 +60,7 @@ pub mod foreign_toplevel {
}
}

#[rustfmt::skip]
pub mod gamma_control {
//! Manage gamma tables of outputs.
//!
Expand All @@ -72,6 +75,7 @@ pub mod gamma_control {
}
}

#[rustfmt::skip]
pub mod input_inhibitor {
//! Inhibits input events to other clients

Expand All @@ -84,6 +88,7 @@ pub mod input_inhibitor {
}
}

#[rustfmt::skip]
pub mod layer_shell {
//! Layered shell protocol

Expand All @@ -96,6 +101,7 @@ pub mod layer_shell {
}
}

#[rustfmt::skip]
pub mod output_management {
//! Output management protocol
//!
Expand All @@ -110,6 +116,7 @@ pub mod output_management {
}
}

#[rustfmt::skip]
pub mod output_power_management {
//! Output power management protocol
//!
Expand All @@ -127,6 +134,7 @@ pub mod output_power_management {
}
}

#[rustfmt::skip]
pub mod screencopy {
//! Screen content capturing on client buffers
//!
Expand All @@ -142,6 +150,7 @@ pub mod screencopy {
}
}

#[rustfmt::skip]
pub mod virtual_pointer {
//! Virtual pointer protocol
//!
Expand Down
2 changes: 0 additions & 2 deletions wayland-protocols/src/ext.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Miscellaneous protocols

#![cfg_attr(rustfmt, rustfmt_skip)]

#[cfg(feature = "staging")]
pub mod idle_notify {
//! This protocol allows clients to monitor user idle status.
Expand Down
4 changes: 4 additions & 0 deletions wayland-protocols/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
#[macro_use]
mod protocol_macro;

#[rustfmt::skip]
pub mod ext;
#[rustfmt::skip]
pub mod wp;
#[rustfmt::skip]
pub mod xdg;
#[rustfmt::skip]
pub mod xwayland;
2 changes: 0 additions & 2 deletions wayland-protocols/src/wp.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Generic wayland protocols

#![cfg_attr(rustfmt, rustfmt_skip)]

#[cfg(feature = "staging")]
pub mod content_type {
//! This protocol allows a client to describe the kind of content a surface
Expand Down
2 changes: 0 additions & 2 deletions wayland-protocols/src/xdg.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Protocols related to window management

#![cfg_attr(rustfmt, rustfmt_skip)]

#[cfg(feature = "staging")]
pub mod activation {
//! The way for a client to pass focus to another toplevel is as follows.
Expand Down
2 changes: 0 additions & 2 deletions wayland-protocols/src/xwayland.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! XWayland related protocols

#![cfg_attr(rustfmt, rustfmt_skip)]

#[cfg(feature = "staging")]
pub mod shell {
//! This protocol adds a xwayland_surface role which allows an Xwayland
Expand Down
2 changes: 0 additions & 2 deletions wayland-sys/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
//!
//! The generated handle is named `wayland_client_handle()`

#![cfg_attr(rustfmt, rustfmt_skip)]

#[cfg(all(feature = "client", feature = "dlopen"))]
use once_cell::sync::Lazy;
#[cfg(feature = "client")]
Expand Down
2 changes: 2 additions & 0 deletions wayland-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ extern crate dlib;

pub mod common;

#[rustfmt::skip]
pub mod client;

#[rustfmt::skip]
pub mod server;

#[cfg(all(feature = "egl", feature = "client"))]
Expand Down
2 changes: 0 additions & 2 deletions wayland-sys/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
//!
//! The generated handle is named `wayland_server_handle()`

#![cfg_attr(rustfmt, rustfmt_skip)]

use super::common::*;
#[cfg(feature = "server")]
use libc::{gid_t, pid_t, uid_t};
Expand Down

0 comments on commit 54aee11

Please sign in to comment.