1
0

Fix errors

This commit is contained in:
Jeff 2023-09-08 06:06:51 -04:00
parent a5c2e6c49f
commit b8a12dad5a

View File

@ -1,6 +1,6 @@
use dust_lib::{eval, Value}; use dust_lib::eval;
use iced::widget::{column, container, text, text_input, Column}; use iced::widget::{column, container, text_input, Column};
use iced::{executor, Application, Command, Element, Sandbox, Settings, Theme}; use iced::{executor, Application, Command, Element, Settings, Theme};
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
static INPUT_ID: Lazy<text_input::Id> = Lazy::new(text_input::Id::unique); static INPUT_ID: Lazy<text_input::Id> = Lazy::new(text_input::Id::unique);
@ -23,7 +23,7 @@ impl Application for DustGui {
type Flags = (); type Flags = ();
fn new(flags: Self::Flags) -> (Self, iced::Command<Self::Message>) { fn new(_flags: Self::Flags) -> (Self, iced::Command<Self::Message>) {
( (
DustGui { DustGui {
text_buffer: String::new(), text_buffer: String::new(),
@ -68,7 +68,7 @@ impl Application for DustGui {
let result_display: Column<Message> = { let result_display: Column<Message> = {
let mut text_widgets = Vec::new(); let mut text_widgets = Vec::new();
for result in &self.results { for _result in &self.results {
// text_widgets.push(text(result).style().into()); // text_widgets.push(text(result).style().into());
} }
@ -86,7 +86,3 @@ enum Message {
TextInput(String), TextInput(String),
Evaluate, Evaluate,
} }
struct DustOutput {
content: dust_lib::Result<Value>,
}