Skip to content

Commit 7869a38

Browse files
kornelskiorium
authored andcommitted
Clippy
1 parent a448365 commit 7869a38

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

c-api/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::*;
22

33
thread_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)]

c-api/src/rewriter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ impl OutputSink for ExternOutputSink {
3434
}
3535
}
3636

37+
#[allow(clippy::too_many_arguments)]
3738
fn lol_html_rewriter_build_inner(
3839
builder: *mut HtmlRewriterBuilder,
3940
encoding: *const c_char,

src/memory/arena.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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!(

0 commit comments

Comments
 (0)