Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/handlers/diagnostics.rs')
-rw-r--r--helix-view/src/handlers/diagnostics.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-view/src/handlers/diagnostics.rs b/helix-view/src/handlers/diagnostics.rs
index 2b8ff632..9ce595e5 100644
--- a/helix-view/src/handlers/diagnostics.rs
+++ b/helix-view/src/handlers/diagnostics.rs
@@ -1,5 +1,4 @@
use std::cell::Cell;
-use std::num::NonZeroUsize;
use std::sync::atomic::{self, AtomicUsize};
use std::sync::Arc;
use std::time::Duration;
@@ -86,7 +85,7 @@ impl DiagnosticsHandler {
active_generation,
generation: Cell::new(0),
events,
- last_doc: Cell::new(DocumentId(NonZeroUsize::new(usize::MAX).unwrap())),
+ last_doc: Cell::new(DocumentId::MAX),
last_cursor_line: Cell::new(usize::MAX),
active: true,
}