aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/text
diff options
context:
space:
mode:
authorPyfisch <pyfisch@gmail.com>2018-11-06 16:08:50 +0100
committerPyfisch <pyfisch@gmail.com>2018-11-06 22:30:31 +0100
commit095d446ccda70c3174c31afe545bb11c22cf43be (patch)
treeeece498642269a1cdfd6a9b6405e5823175d84b6 /components/gfx/text
parentcb07debcb6f3d3561177ce536c320986720791b7 (diff)
downloadservo-095d446ccda70c3174c31afe545bb11c22cf43be.tar.gz
servo-095d446ccda70c3174c31afe545bb11c22cf43be.zip
Manually format remaining problems
Use line comments instead of block comments as block comments contain trailing whitespace after formatting with rustfmt. Skip tests for malloc_size_of and script_plugins with rustfmt as they have many block comments.
Diffstat (limited to 'components/gfx/text')
-rw-r--r--components/gfx/text/glyph.rs19
1 files changed, 9 insertions, 10 deletions
diff --git a/components/gfx/text/glyph.rs b/components/gfx/text/glyph.rs
index 5e37f3eb94c..3f3a92ccb7a 100644
--- a/components/gfx/text/glyph.rs
+++ b/components/gfx/text/glyph.rs
@@ -223,16 +223,15 @@ impl<'a> DetailedGlyphStore {
entry_offset, glyphs
);
- /* TODO: don't actually assert this until asserts are compiled
- in/out based on severity, debug/release, etc. This assertion
- would wreck the complexity of the lookup.
-
- See Rust Issue #3647, #2228, #3627 for related information.
-
- do self.detail_lookup.borrow |arr| {
- assert !arr.contains(entry)
- }
- */
+ // TODO: don't actually assert this until asserts are compiled
+ // in/out based on severity, debug/release, etc. This assertion
+ // would wreck the complexity of the lookup.
+ //
+ // See Rust Issue #3647, #2228, #3627 for related information.
+ //
+ // do self.detail_lookup.borrow |arr| {
+ // assert !arr.contains(entry)
+ // }
self.detail_lookup.push(entry);
self.detail_buffer.extend_from_slice(glyphs);