Skip to content

Commit c63d2b0

Browse files
committed
Fix warnings
Signed-off-by: Nico Burns <nico@nicoburns.com>
1 parent 0374891 commit c63d2b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webrender/src/render_backend.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,8 +1491,9 @@ impl RenderBackend {
14911491
.cloned()
14921492
.filter(|key| !document_already_present(*key))
14931493
.collect();
1494-
#[allow(unused_variables)]
1494+
#[cfg_attr(not(feature = "capture"), allow(unused_variables))]
14951495
let mut built_frame = false;
1496+
#[cfg_attr(not(feature = "capture"), allow(unused_assignments))]
14961497
for &document_id in &nop_documents {
14971498
built_frame |= self.update_document(
14981499
document_id,

0 commit comments

Comments
 (0)