From 08c0949d3454c9edf03fba7c385c672474a22b08 Mon Sep 17 00:00:00 2001 From: Chris Overcash Date: Wed, 20 Nov 2024 22:05:20 -0600 Subject: [PATCH] chore: remove empty default --- ollama-cli/src/tui/messages/mod.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ollama-cli/src/tui/messages/mod.rs b/ollama-cli/src/tui/messages/mod.rs index 3e39496..43e8aa4 100644 --- a/ollama-cli/src/tui/messages/mod.rs +++ b/ollama-cli/src/tui/messages/mod.rs @@ -15,7 +15,7 @@ use crate::{ pub mod state; pub mod view; -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Default)] pub struct MessagesViewModel { /// Streaming response from the model before it's finished. model_stream: String, @@ -25,16 +25,6 @@ pub struct MessagesViewModel { state: state::MessagesState, } -impl Default for MessagesViewModel { - fn default() -> Self { - Self { - model_stream: Default::default(), - messages: VecDeque::from([Message::Assistant("".into())]), - state: Default::default(), - } - } -} - #[derive(Clone, Copy, Debug)] pub enum MessagesEvent { Quit,