mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 11:46:42 +01:00
dsl,input,output,proc,tui: fix warnings
This commit is contained in:
parent
08593571fa
commit
21832453d9
13 changed files with 19 additions and 20 deletions
|
|
@ -1,6 +1,5 @@
|
|||
use crate::*;
|
||||
use std::sync::Arc;
|
||||
use std::borrow::Cow;
|
||||
|
||||
#[derive(Debug, Clone, Default, PartialEq)]
|
||||
pub struct Ast(pub Value<Arc<str>, AstIter>);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use crate::*;
|
||||
use std::fmt::{Debug, Display, Formatter, Error as FormatError};
|
||||
use std::fmt::{Display, Formatter, Error as FormatError};
|
||||
impl Display for Ast {
|
||||
fn fmt (&self, out: &mut Formatter) -> Result<(), FormatError> {
|
||||
use Value::*;
|
||||
|
|
|
|||
|
|
@ -73,12 +73,12 @@ impl<S: Clone, X: Clone,> Clone for Value<S, X> {
|
|||
}
|
||||
impl<S: Copy, X: Copy,> Copy for Value<S, X> {}
|
||||
impl<S: Debug, X: Debug,> Debug for Value<S, X> {
|
||||
fn fmt (&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
|
||||
fn fmt (&self, _f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
impl<S: Display, X: Display,> Display for Value<S, X> {
|
||||
fn fmt (&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
|
||||
fn fmt (&self, _f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ pub(crate) use thiserror::Error;
|
|||
pub(crate) use self::DslError::*;
|
||||
mod dsl_ast; pub use self::dsl_ast::*;
|
||||
mod dsl_cst; pub use self::dsl_cst::*;
|
||||
mod dsl_display; pub use self::dsl_display::*;
|
||||
mod dsl_display; //pub use self::dsl_display::*;
|
||||
mod dsl_domain; pub use self::dsl_domain::*;
|
||||
mod dsl_error; pub use self::dsl_error::*;
|
||||
mod dsl_iter; pub use self::dsl_iter::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue