Skip to content

Commit a84f5b8

Browse files
committed
Silence clippy warnings about missing inline on debug methods.
1 parent fd2d00a commit a84f5b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/unsafe_handle.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,7 @@ unsafe fn as_tcp_stream<T: AsRawHandleOrSocket>(_t: &T, raw_socket: RawSocket) -
10311031

10321032
#[cfg(not(windows))]
10331033
impl fmt::Debug for UnsafeHandle {
1034+
#[allow(clippy::missing_inline_in_public_items)]
10341035
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10351036
// Just print the fd number; don't try to print the path or any
10361037
// information about it, because this information is otherwise
@@ -1043,6 +1044,7 @@ impl fmt::Debug for UnsafeHandle {
10431044

10441045
#[cfg(windows)]
10451046
impl fmt::Debug for UnsafeHandle {
1047+
#[allow(clippy::missing_inline_in_public_items)]
10461048
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10471049
// Just print the raw handle or socket; don't try to print the path or
10481050
// any information about it, because this information is otherwise
@@ -1055,6 +1057,7 @@ impl fmt::Debug for UnsafeHandle {
10551057

10561058
#[cfg(not(windows))]
10571059
impl fmt::Debug for UnsafeFile {
1060+
#[allow(clippy::missing_inline_in_public_items)]
10581061
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10591062
// As with `UnsafeHandle`, just print the raw fd number.
10601063
f.debug_struct("UnsafeFile")
@@ -1065,6 +1068,7 @@ impl fmt::Debug for UnsafeFile {
10651068

10661069
#[cfg(windows)]
10671070
impl fmt::Debug for UnsafeFile {
1071+
#[allow(clippy::missing_inline_in_public_items)]
10681072
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10691073
// As with `UnsafeHandle`, just print the raw handle.
10701074
f.debug_struct("UnsafeFile")
@@ -1075,6 +1079,7 @@ impl fmt::Debug for UnsafeFile {
10751079

10761080
#[cfg(not(windows))]
10771081
impl fmt::Debug for UnsafeSocket {
1082+
#[allow(clippy::missing_inline_in_public_items)]
10781083
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10791084
// As with `UnsafeHandle`, just print the raw fd number.
10801085
f.debug_struct("UnsafeSocket")
@@ -1085,6 +1090,7 @@ impl fmt::Debug for UnsafeSocket {
10851090

10861091
#[cfg(windows)]
10871092
impl fmt::Debug for UnsafeSocket {
1093+
#[allow(clippy::missing_inline_in_public_items)]
10881094
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10891095
// As with `UnsafeHandle`, just print the raw socket.
10901096
f.debug_struct("UnsafeSocket")
@@ -1095,6 +1101,7 @@ impl fmt::Debug for UnsafeSocket {
10951101

10961102
#[cfg(not(windows))]
10971103
impl fmt::Debug for UnsafeReadable {
1104+
#[allow(clippy::missing_inline_in_public_items)]
10981105
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10991106
// As with `UnsafeHandle`, just print the raw fd number.
11001107
f.debug_struct("UnsafeReadable")
@@ -1105,6 +1112,7 @@ impl fmt::Debug for UnsafeReadable {
11051112

11061113
#[cfg(windows)]
11071114
impl fmt::Debug for UnsafeReadable {
1115+
#[allow(clippy::missing_inline_in_public_items)]
11081116
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
11091117
// As with `UnsafeHandle`, just print the raw handle or socket.
11101118
f.debug_struct("UnsafeReadable")
@@ -1115,6 +1123,7 @@ impl fmt::Debug for UnsafeReadable {
11151123

11161124
#[cfg(not(windows))]
11171125
impl fmt::Debug for UnsafeWriteable {
1126+
#[allow(clippy::missing_inline_in_public_items)]
11181127
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
11191128
// As with `UnsafeHandle`, just print the raw fd number.
11201129
f.debug_struct("UnsafeWriteable")
@@ -1125,6 +1134,7 @@ impl fmt::Debug for UnsafeWriteable {
11251134

11261135
#[cfg(windows)]
11271136
impl fmt::Debug for UnsafeWriteable {
1137+
#[allow(clippy::missing_inline_in_public_items)]
11281138
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
11291139
// As with `UnsafeHandle`, just print the raw handle or socket.
11301140
f.debug_struct("UnsafeWriteable")

0 commit comments

Comments
 (0)