Skip to content

Commit

Permalink
chore: remove empty default
Browse files Browse the repository at this point in the history
  • Loading branch information
covercash2 committed Nov 21, 2024
1 parent d6d8659 commit 08c0949
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions ollama-cli/src/tui/messages/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 08c0949

Please sign in to comment.