File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ fn rewrite_call(context: &RewriteContext,
132
132
}
133
133
134
134
// 2 is for parens.
135
- let remaining_width = width - callee_str. len ( ) - 2 ;
135
+ let remaining_width = try_opt ! ( width. checked_sub ( callee_str. len( ) + 2 ) ) ;
136
136
let offset = callee_str. len ( ) + 1 + offset;
137
137
138
138
let items = itemize_list ( context. codemap ,
Original file line number Diff line number Diff line change @@ -79,3 +79,17 @@ fn main() {
79
79
let _ = function ( move || 5 ) ;
80
80
let _ = move || 42 ;
81
81
}
82
+
83
+ fn servo ( ) {
84
+ let constellation_chan = Constellation :: < layout:: layout_task:: LayoutTask ,
85
+ script:: script_task:: ScriptTask > :: start (
86
+ compositor_proxy,
87
+ resource_task,
88
+ image_cache_task,
89
+ font_cache_task,
90
+ time_profiler_chan,
91
+ mem_profiler_chan,
92
+ devtools_chan,
93
+ storage_task,
94
+ supports_clipboard) ;
95
+ }
You can’t perform that action at this time.
0 commit comments