Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
fix: handle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
doinkythederp committed Jan 5, 2024
1 parent bd46ac7 commit 7acc726
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 25 deletions.
15 changes: 2 additions & 13 deletions packages/pros-simulator/src/api.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
use std::{
process::exit,
time::{Duration, Instant},
};
use wasmtime::{Linker, SharedMemory, Store};

use pros_simulator_interface::SimulatorEvent;
use pros_sys::TIMEOUT_MAX;
use tokio::time::sleep;
use wasmtime::{Caller, Linker, SharedMemory, Store, WasmBacktrace};

use crate::host::{
memory::SharedMemoryExt, task::TaskOptions, thread_local::GetTaskStorage, Host, HostCtx,
ResultExt,
};
use crate::host::Host;

mod generic_io;
mod llemu;
Expand Down
7 changes: 2 additions & 5 deletions packages/pros-simulator/src/api/generic_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@
use std::process::exit;

use pros_simulator_interface::SimulatorEvent;
use wasmtime::{Caller, Linker, SharedMemory, Store, WasmBacktrace};
use wasmtime::{Caller, Linker, WasmBacktrace};

use crate::{
host::{memory::SharedMemoryExt, task::TaskPool, Host, HostCtx, ResultExt},
system::system_daemon::CompetitionPhaseExt,
};
use crate::host::{memory::SharedMemoryExt, task::TaskPool, Host, HostCtx};

pub fn configure_generic_io_api(linker: &mut Linker<Host>) -> anyhow::Result<()> {
linker.func_wrap0_async("env", "__errno", |mut caller: Caller<'_, Host>| {
Expand Down
7 changes: 2 additions & 5 deletions packages/pros-simulator/src/api/llemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
//! * `lcd_set_background_color` (not implemented)
//! * `lcd_set_text_color` (not implemented)
use wasmtime::{Caller, Linker, SharedMemory, Store};
use wasmtime::{Caller, Linker};

use crate::{
host::{memory::SharedMemoryExt, Host, HostCtx, ResultExt},
system::system_daemon::CompetitionPhaseExt,
};
use crate::host::{memory::SharedMemoryExt, Host, HostCtx, ResultExt};

pub fn configure_llemu_api(linker: &mut Linker<Host>) -> anyhow::Result<()> {
linker.func_wrap0_async("env", "lcd_initialize", |caller: Caller<'_, Host>| {
Expand Down
2 changes: 1 addition & 1 deletion packages/pros-simulator/src/api/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
//! * `controller_set_text` (not implemented)
//! * `usd_is_installed` (not implemented)
use wasmtime::{Caller, Linker, SharedMemory, Store};
use wasmtime::{Caller, Linker};

use crate::{
host::{Host, HostCtx, ResultExt},
Expand Down
1 change: 0 additions & 1 deletion packages/pros-simulator/src/api/rtos_facilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ use std::{
};

use futures_util::Future;
use pros_simulator_interface::SimulatorEvent;
use pros_sys::TIMEOUT_MAX;
use wasmtime::{Caller, Linker};

Expand Down

0 comments on commit 7acc726

Please sign in to comment.