We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf2ac6 commit 4b7801eCopy full SHA for 4b7801e
src/libproc/kmesg_buffer.rs
@@ -49,7 +49,7 @@ pub fn kmsgbuf() -> Result<String, String> {
49
}
50
51
52
- if message_buffer.len() > 0 {
+ if !message_buffer.is_empty() {
53
let msg = str::from_utf8(&message_buffer)
54
.map_err(|_| "Could not convert kernel message buffer from utf8".to_string())?
55
.parse().unwrap();
0 commit comments