Skip to content

Commit 4b7801e

Browse files
Fix clippy warning
1 parent 4cf2ac6 commit 4b7801e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libproc/kmesg_buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn kmsgbuf() -> Result<String, String> {
4949
}
5050
}
5151

52-
if message_buffer.len() > 0 {
52+
if !message_buffer.is_empty() {
5353
let msg = str::from_utf8(&message_buffer)
5454
.map_err(|_| "Could not convert kernel message buffer from utf8".to_string())?
5555
.parse().unwrap();

0 commit comments

Comments
 (0)