Skip to content

Commit 97560cd

Browse files
author
Florian Guggi
committed
chore: fix new clippy warnings
1 parent 04e42e7 commit 97560cd

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed
File renamed without changes.

filevec/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,21 +133,21 @@ impl<T: Serialize + DeserializeOwned> Extend<T> for FileVec<T> {
133133

134134
pub struct FileVecGuard<'a, T: Serialize + DeserializeOwned>(&'a mut FileVec<T>);
135135

136-
impl<'a, T: Serialize + DeserializeOwned> Deref for FileVecGuard<'a, T> {
136+
impl<T: Serialize + DeserializeOwned> Deref for FileVecGuard<'_, T> {
137137
type Target = Vec<T>;
138138

139139
fn deref(&self) -> &Self::Target {
140140
&self.0.vec
141141
}
142142
}
143143

144-
impl<'a, T: Serialize + DeserializeOwned> DerefMut for FileVecGuard<'a, T> {
144+
impl<T: Serialize + DeserializeOwned> DerefMut for FileVecGuard<'_, T> {
145145
fn deref_mut(&mut self) -> &mut Self::Target {
146146
&mut self.0.vec
147147
}
148148
}
149149

150-
impl<'a, T: Serialize + DeserializeOwned> Drop for FileVecGuard<'a, T> {
150+
impl<T: Serialize + DeserializeOwned> Drop for FileVecGuard<'_, T> {
151151
fn drop(&mut self) {
152152
let _ = self.0.write_to_file();
153153
}

scheduler/src/command/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn handle_command(com: &mut impl CommunicationHandle, exec: &mut SyncExecuti
4242
Err(CommandError::External(e)) => {
4343
log::error!("External error: {e}");
4444
}
45-
};
45+
}
4646
}
4747

4848
pub fn process_command(
@@ -70,7 +70,7 @@ pub fn process_command(
7070
b => {
7171
return Err(CommandError::ProtocolViolation(anyhow!("Unknown command {b:#x}")));
7272
}
73-
};
73+
}
7474

7575
Ok(())
7676
}

scheduler/src/communication/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub trait CommunicationHandle: Read + Write {
111111
log::error!("Received invalid data {:?}", e);
112112
self.send_packet(&CEPPacket::Nack)?;
113113
}
114-
};
114+
}
115115
}
116116

117117
self.send_packet(&CEPPacket::Ack)?;

scheduler/tests/simulation/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
mod command_execution;
22
mod full_run;
33
mod logging;
4+
mod results;
45
mod socket;
56
mod timeout;
6-
mod results;
77

88
use std::{
99
io::{Read, Write},

scheduler/tests/simulation/results.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ use super::*;
22

33
#[test]
44
fn result_files_too_large_are_not_packed() {
5-
let (_sched, mut com, _socat) = start_scheduler("result_files_too_large_are_not_packed").unwrap();
5+
let (_sched, mut com, _socat) =
6+
start_scheduler("result_files_too_large_are_not_packed").unwrap();
67

78
simulate_test_store_archive(&mut com, 1).unwrap();
89
simulate_execute_program(&mut com, 1, 5, 3).unwrap();

0 commit comments

Comments
 (0)