mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 15:38:48 +00:00
Update tests
This commit is contained in:
@@ -20,7 +20,17 @@ impl WriteLine for TranslationUnit {
|
||||
|
||||
let fields = fields
|
||||
.iter()
|
||||
.map(|f| f.deref().to_string())
|
||||
.map(|f| {
|
||||
format!(
|
||||
"{}:{}",
|
||||
if let Some(name) = f.name() {
|
||||
name
|
||||
} else {
|
||||
"%anon"
|
||||
},
|
||||
f.deref().to_string()
|
||||
)
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
.join(", ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user