From 0586a897ca6913f9d1905c172eec0d6a6a325540 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 26 Jul 2021 13:03:22 +0200 Subject: [PATCH] Fix unused variable warning --- zed/src/editor/display_map/fold_map.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zed/src/editor/display_map/fold_map.rs b/zed/src/editor/display_map/fold_map.rs index 3b255d59f4..b7797b0a3b 100644 --- a/zed/src/editor/display_map/fold_map.rs +++ b/zed/src/editor/display_map/fold_map.rs @@ -266,8 +266,7 @@ impl FoldMap { } fn check_invariants(&self, cx: &AppContext) { - #[cfg(debug_assertions)] - { + if cfg!(test) { let buffer = self.buffer.read(cx); assert_eq!( self.transforms.lock().summary().input.bytes,