From 1934b7c49d234156d526715582ee90e6549ae82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Nerma?= Date: Fri, 15 Mar 2024 10:52:54 +0100 Subject: [PATCH] Remove now unneeded import --- lrvm_aux/src/display/buffered.rs | 1 - lrvm_aux/src/keyboard/sync_line.rs | 1 - lrvm_aux/src/storage/bootrom.rs | 1 - lrvm_aux/src/storage/flash.rs | 1 - lrvm_aux/src/storage/persistent.rs | 1 - lrvm_aux/src/volatile_mem/ram.rs | 1 - 6 files changed, 6 deletions(-) diff --git a/lrvm_aux/src/display/buffered.rs b/lrvm_aux/src/display/buffered.rs index 4c462af..07b7371 100644 --- a/lrvm_aux/src/display/buffered.rs +++ b/lrvm_aux/src/display/buffered.rs @@ -5,7 +5,6 @@ use lrvm::board::Bus; use lrvm_tools::bytes::words_to_bytes; use lrvm_tools::exceptions::AuxHwException; use lrvm_tools::metadata::{DeviceMetadata, DisplayType}; -use std::convert::TryInto; use std::str::{from_utf8, Utf8Error}; pub type DecodedStr<'a> = Result<&'a str, (Utf8Error, &'a [u8])>; diff --git a/lrvm_aux/src/keyboard/sync_line.rs b/lrvm_aux/src/keyboard/sync_line.rs index c3092c5..475184e 100644 --- a/lrvm_aux/src/keyboard/sync_line.rs +++ b/lrvm_aux/src/keyboard/sync_line.rs @@ -4,7 +4,6 @@ use lrvm::board::Bus; use lrvm_tools::exceptions::AuxHwException; use lrvm_tools::metadata::{DeviceMetadata, KeyboardType}; -use std::convert::TryInto; /// The keyboard works with a buffer and a handler. When it receives a read request, the data is read from the buffer. /// Writing into the buffer is forbidden but writing to the last word of the component results in it interpreting the provided action code: diff --git a/lrvm_aux/src/storage/bootrom.rs b/lrvm_aux/src/storage/bootrom.rs index 9d16be8..c22ce49 100644 --- a/lrvm_aux/src/storage/bootrom.rs +++ b/lrvm_aux/src/storage/bootrom.rs @@ -4,7 +4,6 @@ use lrvm::board::Bus; use lrvm_tools::exceptions::AuxHwException; use lrvm_tools::metadata::{DeviceMetadata, StorageType}; -use std::convert::TryInto; /// The BootROM component contains a read-only storage that is initialized during its creation. /// All write requests are invalid but read requests are valid (reading outside initialization storage will return '0x00000000'). diff --git a/lrvm_aux/src/storage/flash.rs b/lrvm_aux/src/storage/flash.rs index 82e9a62..a43d9f2 100644 --- a/lrvm_aux/src/storage/flash.rs +++ b/lrvm_aux/src/storage/flash.rs @@ -3,7 +3,6 @@ use lrvm::board::Bus; use lrvm_tools::metadata::{DeviceMetadata, StorageType}; -use std::convert::TryInto; /// The flash memory component contains a writable, persistent storage that does not reset with the motherboard. /// It is though reset when the VM is destroyed. diff --git a/lrvm_aux/src/storage/persistent.rs b/lrvm_aux/src/storage/persistent.rs index b9822aa..19a9dd9 100644 --- a/lrvm_aux/src/storage/persistent.rs +++ b/lrvm_aux/src/storage/persistent.rs @@ -5,7 +5,6 @@ use lrvm::board::Bus; use lrvm_tools::exceptions::AuxHwException; use lrvm_tools::metadata::{DeviceMetadata, StorageType}; use std::cmp::Ordering; -use std::convert::TryInto; use std::fs::{File, OpenOptions}; use std::io::{Read, Result as IOResult, Seek, SeekFrom, Write}; use std::path::Path; diff --git a/lrvm_aux/src/volatile_mem/ram.rs b/lrvm_aux/src/volatile_mem/ram.rs index 23b1814..50e1293 100644 --- a/lrvm_aux/src/volatile_mem/ram.rs +++ b/lrvm_aux/src/volatile_mem/ram.rs @@ -3,7 +3,6 @@ use lrvm::board::Bus; use lrvm_tools::metadata::{DeviceMetadata, MemoryType}; -use std::convert::TryInto; /// The RAM component offers a simple non-persistent storage. /// When it receives a RESET request from the motherboard, all the storage is zeroed.