Skip to content

Commit

Permalink
fix: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
mablin7 committed Jul 3, 2024
1 parent 7231fca commit fb02f86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
7 changes: 2 additions & 5 deletions crates/dies-basestation-client/src/basestation_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ pub struct BasestationClient {
impl BasestationClient {
/// Create a new `BasestationClient`.
pub fn new(config: BasestationClientConfig) -> Result<Self> {
let BasestationClientConfig {
port_name,
robot_id_map,
} = config;
let BasestationClientConfig { port_name, .. } = config;

// Launch a blocking thread for writing to the serial port
let (cmd_tx, mut cmd_rx) =
Expand Down Expand Up @@ -175,6 +172,6 @@ impl BasestationClient {

/// Receive a message from the serial port.
pub async fn recv(&mut self) -> Result<PlayerFeedbackMsg> {
Err(anyhow::anyhow!("Not implemented"))
self.info_rx.recv().await.map_err(|e| e.into())
}
}
2 changes: 1 addition & 1 deletion crates/dies-cli/src/tui_utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use anyhow::{bail, Context, Result};
use anyhow::{bail, Result};
use clap::{Parser, ValueEnum};
use dies_basestation_client::{list_serial_ports, BasestationClientConfig};
use dies_ssl_client::VisionClientConfig;
Expand Down
4 changes: 1 addition & 3 deletions crates/dies-simulator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use dies_core::{
Angle, BallData, FieldGeometry, KickerCmd, PlayerCmd, PlayerData, PlayerId, Vector2, WorldData,
};
use dies_core::{Angle, FieldGeometry, KickerCmd, PlayerCmd, PlayerId, Vector2};
use dies_protos::{
ssl_vision_detection::{SSL_DetectionBall, SSL_DetectionFrame, SSL_DetectionRobot},
ssl_vision_geometry::{
Expand Down

0 comments on commit fb02f86

Please sign in to comment.