Skip to content

Commit 9dc9619

Browse files
G2-GamesSkywalker8510
authored andcommitted
Fixed clippy suggestion
1 parent 5a5c1ff commit 9dc9619

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use linux_embedded_hal::I2cdev;
77
use tracing::{warn, debug, error, info, instrument, Level};
88
use nmea::{Nmea, SentenceType};
99
use rppal::gpio::Gpio;
10-
use std::{cell::RefCell, collections::VecDeque, sync::{Arc, mpsc::{self, Receiver, Sender}}, time::Duration};
11-
use tokio::{join, spawn, sync::watch, time::{self, sleep}};
10+
use std::{collections::VecDeque, sync::{Arc, mpsc::{self, Receiver, Sender}}, time::Duration};
11+
use tokio::{join, sync::watch, time::{self, sleep}};
1212
use serialport::SerialPort;
1313
use std::sync::Mutex;
1414
use bno055::BNO055PowerMode;
@@ -79,7 +79,7 @@ async fn sending_loop(mut rfd_send: Box<dyn SerialPort>, info_recv: Receiver<Str
7979
info!("Spawned BMP task");
8080

8181
// Spawn BNO task
82-
let (bno_send, bno_recv) = watch::channel(None);
82+
let (bno_send, _bno_recv) = watch::channel(None);
8383
let bnoi2c = Arc::clone(&i2c);
8484
tokio::spawn(async move {
8585
let bnoi2c = MutexDevice::new(&*bnoi2c);
@@ -322,7 +322,7 @@ async fn bmp_loop(data: watch::Sender<(Option<f64>, Option<f64>)>, i2c: MutexDev
322322
}
323323

324324
#[instrument(skip_all)]
325-
async fn bno055_loop(data: watch::Sender<Option<(f64, f64)>>, i2c: MutexDevice<'_, I2cdev>) {
325+
async fn bno055_loop(_data: watch::Sender<Option<(f64, f64)>>, i2c: MutexDevice<'_, I2cdev>) {
326326
let mut bno055 = bno055::Bno055::new(i2c);
327327
let mut delay = linux_embedded_hal::Delay;
328328
bno055.set_mode(bno055::BNO055OperationMode::NDOF, &mut delay).unwrap();

0 commit comments

Comments
 (0)