🔧 Fix all unused_mut warnings: 16 instances cleaned up

- Remove unnecessary 'mut' from variable declarations
- Clean up code in boxes/, interpreter/, mir/, backend/, and runtime/
- No functional changes, just cleaner code
This commit is contained in:
Selfhosting Dev
2025-09-11 16:34:22 +09:00
parent ba33431f02
commit faf79c5d52
8 changed files with 12 additions and 12 deletions

View File

@ -215,7 +215,7 @@ impl SocketBox {
if ms == 0 { return self.accept(); }
let start = std::time::Instant::now();
if let Ok(mut guard) = self.listener.write() {
if let Ok(guard) = self.listener.write() {
if let Some(ref listener) = *guard {
let _ = listener.set_nonblocking(true);
loop {
@ -319,7 +319,7 @@ impl SocketBox {
let stream_guard = self.stream.write().unwrap();
if let Some(ref stream) = *stream_guard {
match stream.try_clone() {
Ok(mut stream_clone) => {
Ok(stream_clone) => {
drop(stream_guard);
let _ = stream_clone.set_read_timeout(Some(Duration::from_millis(ms)));
let mut reader = BufReader::new(stream_clone);