Skip to content

Commit fc45c93

Browse files
committed
a few more missing semicolons
1 parent 7b6e176 commit fc45c93

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

gix-features/tests/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use gix_features::hash::Sha1;
33
#[cfg(not(feature = "fast-sha1"))]
44
#[test]
55
fn size_of_sha1() {
6-
assert_eq!(std::mem::size_of::<Sha1>(), 96)
6+
assert_eq!(std::mem::size_of::<Sha1>(), 96);
77
}
88

99
#[cfg(feature = "fast-sha1")]

gix-packetline/src/encode/async_io.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl<W: AsyncWrite + Unpin> AsyncWrite for LineWriter<'_, W> {
7070
}
7171
let data_len = data_len + 4;
7272
let len_buf = u16_to_hex(data_len as u16);
73-
*this.state = State::WriteHexLen(len_buf, 0)
73+
*this.state = State::WriteHexLen(len_buf, 0);
7474
}
7575
State::WriteHexLen(hex_len, written) => {
7676
while *written != hex_len.len() {
@@ -81,9 +81,9 @@ impl<W: AsyncWrite + Unpin> AsyncWrite for LineWriter<'_, W> {
8181
*written += n;
8282
}
8383
if this.prefix.is_empty() {
84-
*this.state = State::WriteData(0)
84+
*this.state = State::WriteData(0);
8585
} else {
86-
*this.state = State::WritePrefix(this.prefix)
86+
*this.state = State::WritePrefix(this.prefix);
8787
}
8888
}
8989
State::WritePrefix(buf) => {
@@ -95,7 +95,7 @@ impl<W: AsyncWrite + Unpin> AsyncWrite for LineWriter<'_, W> {
9595
let (_, rest) = std::mem::take(buf).split_at(n);
9696
*buf = rest;
9797
}
98-
*this.state = State::WriteData(0)
98+
*this.state = State::WriteData(0);
9999
}
100100
State::WriteData(written) => {
101101
while *written != data.len() {
@@ -110,7 +110,7 @@ impl<W: AsyncWrite + Unpin> AsyncWrite for LineWriter<'_, W> {
110110
*this.state = State::Idle;
111111
return Poll::Ready(Ok(written));
112112
} else {
113-
*this.state = State::WriteSuffix(this.suffix)
113+
*this.state = State::WriteSuffix(this.suffix);
114114
}
115115
}
116116
State::WriteSuffix(buf) => {

gix-packetline/src/read/sidebands/async_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ where
106106
parent
107107
.as_mut()
108108
.expect("parent is always available if we are idle")
109-
.reset_with(delimiters)
109+
.reset_with(delimiters);
110110
}
111111
}
112112

gix-packetline/src/write/async_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<T: AsyncWrite + Unpin> AsyncWrite for Writer<T> {
6868
"empty packet lines are not permitted as '0004' is invalid",
6969
)));
7070
}
71-
*this.state = State::WriteData(0)
71+
*this.state = State::WriteData(0);
7272
}
7373
State::WriteData(written) => {
7474
while *written != buf.len() {

gix-packetline/tests/read/sideband.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mod util {
3030
}
3131

3232
fn consume(&mut self, amt: usize) {
33-
Pin::new(&mut self.0).consume(amt)
33+
Pin::new(&mut self.0).consume(amt);
3434
}
3535
}
3636
}

gix-protocol/src/handshake/refs/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl<'a> futures_io::AsyncBufRead for Fixture<'a> {
226226
}
227227

228228
fn consume(self: std::pin::Pin<&mut Self>, amt: usize) {
229-
self.project_inner().consume(amt)
229+
self.project_inner().consume(amt);
230230
}
231231
}
232232

gix-transport/src/client/async_io/bufread_ext.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ impl<'a, T: ReadlineBufRead + ?Sized + 'a + Unpin> ReadlineBufRead for Box<T> {
7272
#[async_trait(?Send)]
7373
impl<'a, T: ExtendedBufRead<'a> + ?Sized + 'a + Unpin> ExtendedBufRead<'a> for Box<T> {
7474
fn set_progress_handler(&mut self, handle_progress: Option<HandleProgress<'a>>) {
75-
self.deref_mut().set_progress_handler(handle_progress)
75+
self.deref_mut().set_progress_handler(handle_progress);
7676
}
7777

7878
async fn peek_data_line(&mut self) -> Option<io::Result<Result<&[u8], Error>>> {
7979
self.deref_mut().peek_data_line().await
8080
}
8181

8282
fn reset(&mut self, version: Protocol) {
83-
self.deref_mut().reset(version)
83+
self.deref_mut().reset(version);
8484
}
8585

8686
fn stopped_at(&self) -> Option<MessageKind> {
@@ -113,7 +113,7 @@ impl<'a, T: AsyncRead + Unpin> ReadlineBufRead for gix_packetline::read::WithSid
113113
#[async_trait(?Send)]
114114
impl<'a, T: AsyncRead + Unpin> ExtendedBufRead<'a> for gix_packetline::read::WithSidebands<'a, T, HandleProgress<'a>> {
115115
fn set_progress_handler(&mut self, handle_progress: Option<HandleProgress<'a>>) {
116-
self.set_progress_handler(handle_progress)
116+
self.set_progress_handler(handle_progress);
117117
}
118118
async fn peek_data_line(&mut self) -> Option<io::Result<Result<&[u8], Error>>> {
119119
match self.peek_data_line().await {

gix/tests/repository/config/transport_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ mod http {
8383
assert!(
8484
backend.is_none(),
8585
"backed is never set as it's backend specific, rather custom options typically"
86-
)
86+
);
8787
}
8888
#[cfg(feature = "blocking-http-transport-curl")]
8989
{

0 commit comments

Comments
 (0)