File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11use super :: * ;
22
33thread_local ! {
4- pub static LAST_ERROR : RefCell <Option <Box <str >>> = RefCell :: new( None ) ;
4+ pub static LAST_ERROR : RefCell <Option <Box <str >>> = const { RefCell :: new( None ) } ;
55}
66
77#[ unsafe( no_mangle) ]
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ impl OutputSink for ExternOutputSink {
3434 }
3535}
3636
37+ #[ allow( clippy:: too_many_arguments) ]
3738fn lol_html_rewriter_build_inner (
3839 builder : * mut HtmlRewriterBuilder ,
3940 encoding : * const c_char ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ impl Arena {
1515 let preallocated = limiter
1616 . increase_usage ( preallocated_size)
1717 . ok ( )
18- . and_then ( |_ | data. try_reserve_exact ( preallocated_size) . ok ( ) )
18+ . and_then ( |( ) | data. try_reserve_exact ( preallocated_size) . ok ( ) )
1919 . is_some ( ) ;
2020 // HtmlRewriter::new() has no way to report this
2121 debug_assert ! (
You can’t perform that action at this time.
0 commit comments