Skip to content

Commit

Permalink
style: rename a variant
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed May 12, 2024
1 parent 19a721b commit e48050b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl State {

let output = match &mut session_live.expecting {
ReplSessionExpecting::Nothing => anyhow::bail!("not expecting, got {:?}", ch as char),
ReplSessionExpecting::InitialPrompt(acc) => {
ReplSessionExpecting::Prompt(acc) => {
acc.push(ch.into());
let string = String::from_utf8(strip_ansi_escapes::strip(acc)?)?;

Expand All @@ -158,7 +158,7 @@ impl State {
expected_result: expected_result.clone(),
}
} else {
ReplSessionExpecting::InitialPrompt(String::new())
ReplSessionExpecting::Prompt(String::new())
};
vec![]
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/app/state/repl_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub(crate) struct ReplSessionLive {
#[derive(Debug)]
pub(crate) enum ReplSessionExpecting {
Nothing,
InitialPrompt(String),
Prompt(String),
Echo {
acc: String,
last_query: ReplQuery,
Expand All @@ -61,7 +61,7 @@ impl ReplSessionLive {
pub(crate) fn new(entries: ReplExampleEntries) -> Self {
Self {
iterator: entries.into_iter(),
expecting: ReplSessionExpecting::InitialPrompt(String::new()),
expecting: ReplSessionExpecting::Prompt(String::new()),
}
}
}
Expand Down

0 comments on commit e48050b

Please sign in to comment.