Skip to content

Commit 1daa1ed

Browse files
Florian Guggiflorg-32
authored andcommitted
chore: Fix clippy warnings for fmt strings
1 parent 31d6108 commit 1daa1ed

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scheduler/src/command/execute_program.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn execute_program(
4444
let wd_handle = std::thread::spawn(move || {
4545
let exit_code = supervise_process(student_process, timeout, &mut wd_context).unwrap_or(255);
4646

47-
log::info!("Program {}:{} finished with {}", program_id, timestamp, exit_code);
47+
log::info!("Program {program_id}:{timestamp} finished with {exit_code}");
4848
let sid = ProgramStatus { program_id, timestamp, exit_code };
4949
let rid = ResultId { program_id, timestamp };
5050
build_result_archive(rid).unwrap(); // create the tar file with result and log

scheduler/src/command/return_result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn return_result(
2626
}
2727

2828
let bytes = std::fs::read(result_path)?;
29-
log::info!("Returning result for {}:{}", program_id, timestamp);
29+
log::info!("Returning result for {program_id}:{timestamp}");
3030
com.send_multi_packet(&bytes)?;
3131

3232
com.await_ack(COMMAND_TIMEOUT)?;

scheduler/src/command/store_archive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn store_archive(
1515
check_length(com, data, 3)?;
1616

1717
let id = u16::from_le_bytes([data[1], data[2]]).to_string();
18-
log::info!("Storing Archive {}", id);
18+
log::info!("Storing Archive {id}");
1919

2020
let bytes = com.receive_multi_packet()?;
2121
unpack_archive(&id, &bytes)?;

scheduler/src/communication/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub trait CommunicationHandle: Read + Write {
108108
return Err(CommunicationError::TimedOut);
109109
}
110110
e => {
111-
log::error!("Received invalid data {:?}", e);
111+
log::error!("Received invalid data {e:?}");
112112
self.send_packet(&CEPPacket::Nack)?;
113113
}
114114
}

0 commit comments

Comments
 (0)