mirror of
https://github.com/TxtDot/dalet-rs.git
synced 2024-11-21 16:26:21 +03:00
fix: formatting add newline on end
This commit is contained in:
parent
61a6aaf48c
commit
f6195aa708
3 changed files with 6 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -201,7 +201,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "dalet"
|
||||
version = "1.0.0-pre.19"
|
||||
version = "1.0.0-pre.20"
|
||||
dependencies = [
|
||||
"ariadne",
|
||||
"bincode",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "dalet"
|
||||
version = "1.0.0-pre.19"
|
||||
version = "1.0.0-pre.20"
|
||||
edition = "2021"
|
||||
authors = ["artegoser"]
|
||||
license = "MIT"
|
||||
|
|
|
@ -168,5 +168,8 @@ pub fn format<'src>(spanned_tokens: &Vec<Spanned<Token<'src>>>) -> String {
|
|||
formatted.push_str(&to_push);
|
||||
}
|
||||
|
||||
formatted.trim().to_owned()
|
||||
let mut formatted = formatted.trim().to_owned();
|
||||
formatted.push('\n');
|
||||
|
||||
formatted
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue