mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-01 10:17:30 +03:00
Merge pull request #1133 from detailyang/hotfix/ast-formatstring-display
hotfix:fix formatstring display trait
This commit is contained in:
commit
640c22c70c
@ -74,7 +74,7 @@ impl fmt::Display for FormatString {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
"\"{}\", {}",
|
||||
self.parts
|
||||
.iter()
|
||||
.map(|x| match x {
|
||||
@ -82,7 +82,12 @@ impl fmt::Display for FormatString {
|
||||
FormatStringPart::Container => "{}".to_string(),
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
.join("")
|
||||
.join(""),
|
||||
self.parameters
|
||||
.iter()
|
||||
.map(|p| p.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user