fix some warnings
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
same mf who else 2026-02-21 00:48:41 +02:00
parent 7a8365c017
commit b4ebdb8ff8
3 changed files with 1 additions and 4 deletions

View file

@ -15,7 +15,7 @@ pub(crate) use std::ops::{Add, Sub, Mul, Div};
pub(crate) use std::sync::{Arc, RwLock, atomic::{AtomicUsize, Ordering::Relaxed}}; pub(crate) use std::sync::{Arc, RwLock, atomic::{AtomicUsize, Ordering::Relaxed}};
pub(crate) use std::marker::PhantomData; pub(crate) use std::marker::PhantomData;
pub(crate) use dizzle::*; pub(crate) use dizzle::*;
pub(crate) use quanta::Clock; //pub(crate) use quanta::Clock;
pub(crate) use atomic_float::AtomicF64; pub(crate) use atomic_float::AtomicF64;
// Define macros first, so that private macros are available in private modules: // Define macros first, so that private macros are available in private modules:

View file

@ -1,5 +1,4 @@
use crate::*; use crate::*;
use Direction::*;
use Alignment::*; use Alignment::*;
impl Coord for u16 { impl Coord for u16 {

View file

@ -76,8 +76,6 @@ pub trait View<O, U> {
Err(format!("View::view_word: no words defined: {word:?}").into()) Err(format!("View::view_word: no words defined: {word:?}").into())
} }
fn view <'a> (&'a self, output: &mut O, dsl: &'a impl Language) -> Usually<U> { fn view <'a> (&'a self, output: &mut O, dsl: &'a impl Language) -> Usually<U> {
let is_expr = dsl.expr();
let is_word = dsl.word();
match (dsl.expr(), dsl.word()) { match (dsl.expr(), dsl.word()) {
(Ok(Some(e)), _ ) => self.view_expr(output, &e), (Ok(Some(e)), _ ) => self.view_expr(output, &e),
(_, Ok(Some(w))) => self.view_word(output, &w), (_, Ok(Some(w))) => self.view_word(output, &w),