This commit is contained in:
Simon Sapin 2017-06-18 13:21:04 +02:00
parent 7af5a7fd54
commit 316cd35767
34 changed files with 261 additions and 264 deletions

View file

@ -665,27 +665,27 @@ impl<'a> GlyphStore {
impl fmt::Debug for GlyphStore {
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
try!(write!(formatter, "GlyphStore:\n"));
write!(formatter, "GlyphStore:\n")?;
let mut detailed_buffer = self.detail_store.detail_buffer.iter();
for entry in self.entry_buffer.iter() {
if entry.is_simple() {
try!(write!(formatter,
write!(formatter,
" simple id={:?} advance={:?}\n",
entry.id(),
entry.advance()));
entry.advance())?;
continue
}
if entry.is_initial() {
continue
}
try!(write!(formatter, " complex..."));
write!(formatter, " complex...")?;
if detailed_buffer.next().is_none() {
continue
}
try!(write!(formatter,
write!(formatter,
" detailed id={:?} advance={:?}\n",
entry.id(),
entry.advance()));
entry.advance())?;
}
Ok(())
}