Skip to content

Commit

Permalink
Fix mutability requirement when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ericliu0000 committed Nov 7, 2023
1 parent 2fe6426 commit f593be8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/missions/vision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ where
{
type Output = Result<Offset2D<V>>;
async fn execute(&mut self) -> Self::Output {
#[cfg(feature = "logging")]
let mat = self.context.get_mat().await;

#[cfg(feature = "logging")]
{
println!("Running detection...");
}
let mat = self.context.get_mat().await;
let mut mat = self.context.get_mat().await;
}

let detections = self.model.detect(&mat);
#[cfg(feature = "logging")]
println!("Detect attempt: {}", detections.is_ok());
Expand Down

0 comments on commit f593be8

Please sign in to comment.