Skip to content

Commit 9828d19

Browse files
fix: temporary measure against rustc ICE on nightly
ICE rust-lang/rust#137640 In all crates disable #[deny(clippy::*)
1 parent dd6d796 commit 9828d19

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

atspi-common/src/events/event_body.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::AtspiError;
22
use serde::{
3-
ser::{SerializeMap, SerializeStruct},
3+
ser::{SerializeMap, SerializeTuple},
44
Deserialize, Serialize,
55
};
66
use zbus_lockstep_macros::validate;
@@ -75,10 +75,10 @@ impl Serialize for QtProperties {
7575
where
7676
S: serde::ser::Serializer,
7777
{
78-
let mut structure = serializer.serialize_struct("ObjectRef", 2)?;
79-
structure.serialize_field("name", ":0.0")?;
80-
structure.serialize_field("path", &ObjectPath::from_static_str_unchecked("/"))?;
81-
structure.end()
78+
let mut tup = serializer.serialize_tuple(2)?;
79+
tup.serialize_element(":0.0")?;
80+
tup.serialize_element(&ObjectPath::from_static_str_unchecked("/"))?;
81+
tup.end()
8282
}
8383
}
8484

@@ -449,6 +449,7 @@ impl<'a> EventBody<'_> {
449449
}
450450
}
451451

452+
/// The `detail1` field.
452453
#[must_use]
453454
pub fn detail1(&self) -> i32 {
454455
match self {
@@ -457,6 +458,7 @@ impl<'a> EventBody<'_> {
457458
}
458459
}
459460

461+
/// The `detail2` field.
460462
#[must_use]
461463
pub fn detail2(&self) -> i32 {
462464
match self {

atspi-common/src/events/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ where
762762
///
763763
/// - [`type@AtspiError::MissingInterface`] if there is no interface
764764
/// - [`type@AtspiError::InterfaceMatch`] if the interfaces do not match
765+
#[inline]
765766
fn validate_interface(msg: &zbus::Message) -> Result<(), AtspiError> {
766767
let header = msg.header();
767768
let interface = header.interface().ok_or(AtspiError::MissingInterface)?;
@@ -798,6 +799,7 @@ where
798799
/// # Errors
799800
///
800801
/// - [`type@AtspiError::SignatureMatch`] if the signatures do not match
802+
#[inline]
801803
fn validate_body(msg: &zbus::Message) -> Result<(), AtspiError> {
802804
let body = msg.body();
803805
let body_signature = body.signature();

atspi-common/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
1+
// #![deny(clippy::all, clippy::cargo, unsafe_code, rustdoc::all)]
22
#![allow(clippy::module_name_repetitions)]
33
#![allow(clippy::multiple_crate_versions)]
4+
// ICE https://github.com/rust-lang/rust/issues/137640
45

56
//! # atspi-common
67
//!

atspi-connection/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
44
#![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all, missing_docs)]
55
#![allow(clippy::multiple_crate_versions)]
6+
// ICE https://github.com/rust-lang/rust/issues/137640
7+
#![allow(clippy::macro_use_imports)]
68

79
#[cfg(all(not(feature = "async-std"), not(feature = "tokio")))]
810
compile_error!("You must specify at least one of the `async-std` or `tokio` features.");

atspi-proxies/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
//! All proxy structures for communicating using AT-SPI.
22
//! Each proxy uses a different interface for communication.
33
4-
#![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
4+
// #![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
55
#![allow(clippy::multiple_crate_versions)]
6+
// ICE https://github.com/rust-lang/rust/issues/137640
67

78
#[cfg(all(not(feature = "async-std"), not(feature = "tokio")))]
89
compile_error!("You must specify at least one of the `async-std` or `tokio` features.");

atspi/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
//! * `atspi_connection` (with use of `connection` feature flag)
55
//! * `zbus` re-export (with use of `zbus` feature flag)
66
7-
#![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
7+
// #![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
88
#![allow(clippy::multiple_crate_versions)]
9+
// ICE https://github.com/rust-lang/rust/issues/137640
910

1011
#[cfg(all(not(feature = "async-std"), not(feature = "tokio")))]
1112
compile_error!("You must specify at least one of the `async-std` or `tokio` features.");

0 commit comments

Comments
 (0)