mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
fix: push_str instead of write macro
Co-authored-by: Filip Tibell <filip.tibell@gmail.com>
This commit is contained in:
parent
682bf7cee1
commit
a2de4eb70b
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ pub async fn show_interface(cmd: Command) -> Result<ExitCode> {
|
|||
match repl.readline(prompt) {
|
||||
Ok(code) => {
|
||||
if prompt_state == PromptState::Continuation {
|
||||
write!(&mut source_code, "{}", code)?;
|
||||
source_code.push_str(&code);
|
||||
} else if prompt_state == PromptState::Regular {
|
||||
source_code = code.clone();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue