File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -188,13 +188,11 @@ pub fn render(
188
188
writeln ! ( device_x, "PROVIDE({name} = DefaultHandler);" ) ?;
189
189
}
190
190
191
- let link_section_attr = if let Some ( section ) = & config. interrupt_link_section {
191
+ let link_section_attr = config. interrupt_link_section . as_ref ( ) . map ( |section| {
192
192
quote ! {
193
193
#[ link_section = #section]
194
194
}
195
- } else {
196
- quote ! { }
197
- } ;
195
+ } ) ;
198
196
199
197
root. extend ( quote ! {
200
198
#[ cfg( feature = "rt" ) ]
@@ -222,13 +220,11 @@ pub fn render(
222
220
writeln ! ( device_x, "PROVIDE({name} = DefaultHandler);" ) ?;
223
221
}
224
222
225
- let link_section_attr = if let Some ( section ) = & config. interrupt_link_section {
223
+ let link_section_attr = config. interrupt_link_section . as_ref ( ) . map ( |section| {
226
224
quote ! {
227
225
#[ link_section = #section]
228
226
}
229
- } else {
230
- quote ! { }
231
- } ;
227
+ } ) ;
232
228
233
229
root. extend ( quote ! {
234
230
#[ cfg( feature = "rt" ) ]
You can’t perform that action at this time.
0 commit comments