lint: remove redundant semicolons

Newer versions of Rust emit warnings for these
This commit is contained in:
Wez Furlong committed 2021-03-25 09:44:27 -07:00
1 parent dbd7fc28a5
commit 3bec6fb5c0
6 files changed
+13 -13

No files matched your search

+2 -2
View File
@@ -34,7 +34,7 @@ use wezterm_term::{ClipboardSelection, StableRowIndex};
/// Returns the encoded length of the leb128 representation of value
fn encoded_length(value: u64) -> usize {
struct NullWrite {};
struct NullWrite {}
impl std::io::Write for NullWrite {
fn write(&mut self, buf: &[u8]) -> std::result::Result<usize, std::io::Error> {
Ok(buf.len())
@@ -42,7 +42,7 @@ fn encoded_length(value: u64) -> usize {
fn flush(&mut self) -> std::result::Result<(), std::io::Error> {
Ok(())
}
};
}
leb128::write::unsigned(&mut NullWrite {}, value).unwrap()
}