Skip to content

Commit cd6b875

Browse files
committed
Appease clippy
1 parent ea74c09 commit cd6b875

File tree

1 file changed

+2
-3
lines changed
  • examples/bump-alloc-tests/src

1 file changed

+2
-3
lines changed

examples/bump-alloc-tests/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ fn stack_and_static(ctx: &ReceiveContext, _host: &Host<State>) -> ReceiveResult<
114114
let original_text_len = text.len();
115115
// Allocate a long lived box on the heap.
116116
let long_lived: Box<Vec<u32>> = black_box(Box::new((0..n).collect()));
117-
// Run the appender function. Wrapped in a [`black_box`] to ensure that the
118-
// compiler won't try to optimize the internals away.
119-
black_box(appender(&mut text, n, &on_even, ON_ODD));
117+
// Run the appender function.
118+
appender(&mut text, n, &on_even, ON_ODD);
120119
// Use some of the local variables defined before the recursive call.
121120
// Abort if `n` should have been altered.
122121
if original_n != n {

0 commit comments

Comments
 (0)