This commit is contained in:
Koxiaet 2020-10-26 15:14:53 +00:00
parent 686f9bcff9
commit 10d900a280
2 changed files with 11 additions and 2 deletions

@ -1 +1 @@
Subproject commit d635246bdc9a1eb0d115efb6ba890a417defb394
Subproject commit 1c6f98211dec59f512fc2628b17d8e7d5a74bba6

View File

@ -131,7 +131,16 @@ impl Registry {
write!(sdl, "type {} ", name).ok();
if let Some(implements) = self.implements.get(name) {
if !implements.is_empty() {
write!(sdl, "implements {} ", implements.iter().map(AsRef::as_ref).collect::<Vec<&str>>().join(" & ")).ok();
write!(
sdl,
"implements {} ",
implements
.iter()
.map(AsRef::as_ref)
.collect::<Vec<&str>>()
.join(" & ")
)
.ok();
}
}