Skip to content

Commit 645c5db

Browse files
committed
Fix Clippy for main crate
1 parent 88d0579 commit 645c5db

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/api/minimal/ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ macro_rules! impl_minimal_p {
215215
f,
216216
"{}<{}>(",
217217
stringify!($id),
218-
unsafe { crate::intrinsics::type_name::<T>() }
218+
crate::intrinsics::type_name::<T>()
219219
)?;
220220
for i in 0..$elem_count {
221221
if i > 0 {

src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@
220220
clippy::cast_precision_loss,
221221
// This lint is currently broken for generic code
222222
// See https://github.com/rust-lang/rust-clippy/issues/3410
223-
clippy::use_self
223+
clippy::use_self,
224+
clippy::wrong_self_convention
224225
)]
225226
#![cfg_attr(test, feature(hashmap_internals))]
226227
#![deny(warnings, rust_2018_idioms, clippy::missing_inline_in_public_items)]

src/masks.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ macro_rules! impl_mask_ty {
88

99
impl crate::sealed::Seal for $id {}
1010
impl crate::sealed::Mask for $id {
11+
#[inline]
1112
fn test(&self) -> bool {
1213
$id::test(self)
1314
}

0 commit comments

Comments
 (0)