Skip to content

Commit 4b6566c

Browse files
rex4539ogoffart
authored andcommitted
Fix feature = "cargo-clippy" deprecation
1 parent 728220c commit 4b6566c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

qmetaobject/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
151151
*/
152152

153153
#![recursion_limit = "10240"]
154-
#![cfg_attr(feature = "cargo-clippy", allow(clippy::needless_pass_by_value))] // Too many of that for qt types. (FIXME)
155-
#![cfg_attr(feature = "cargo-clippy", allow(clippy::cognitive_complexity))]
154+
#![allow(clippy::needless_pass_by_value)] // Too many of that for qt types. (FIXME)
155+
#![allow(clippy::cognitive_complexity)]
156156

157157
#[doc(hidden)]
158158
pub use qmetaobject_impl::{qrc_internal, SimpleListItem};
@@ -511,7 +511,7 @@ impl<'pin, T: QObject + ?Sized + 'pin> QObjectPinned<'pin, T> {
511511
/// Borrow the object
512512
// FIXME: there are too many cases for which we want reentrance after borrowing
513513
//pub fn borrow(&self) -> std::cell::Ref<T> { self.0.borrow() }
514-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::should_implement_trait))]
514+
#[allow(clippy::should_implement_trait)]
515515
pub fn borrow(&self) -> &T {
516516
unsafe { &*self.0.as_ptr() }
517517
}

qmetaobject/src/scenegraph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ cpp! {{
7474
/// for [`SGNode<ContainerNode>::update_static`].
7575
///
7676
/// Do not reimplement
77-
#[cfg_attr(feature = "cargo-clippy", allow(clippy::len_without_is_empty))]
77+
#[allow(clippy::len_without_is_empty)]
7878
pub trait UpdateNodeFnTuple<T> {
7979
fn len(&self) -> u64;
8080
unsafe fn update_fn(&self, i: u64, _: *mut c_void) -> *mut c_void;

qmetaobject_impl/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1919
//! This crates implement the custom derive used by the `qmetaobject` crate.
2020
2121
#![recursion_limit = "256"]
22-
#![cfg_attr(feature = "cargo-clippy", allow(clippy::unreadable_literal))] // Because we copy-paste constants from Qt
23-
#![cfg_attr(feature = "cargo-clippy", allow(clippy::cognitive_complexity))]
22+
#![allow(clippy::unreadable_literal)] // Because we copy-paste constants from Qt
23+
#![allow(clippy::cognitive_complexity)]
2424

2525
use proc_macro::TokenStream;
2626
use quote::{quote, ToTokens};

0 commit comments

Comments
 (0)