From d913518b7526351ccbbff409e0b8649aa4eb6959 Mon Sep 17 00:00:00 2001 From: Jason Orendorff Date: Fri, 1 Nov 2024 17:22:23 -0500 Subject: [PATCH] utf8-converter: Require docs for public items. --- crates/utf8-converter/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/utf8-converter/src/lib.rs b/crates/utf8-converter/src/lib.rs index 182583d..4b849f7 100644 --- a/crates/utf8-converter/src/lib.rs +++ b/crates/utf8-converter/src/lib.rs @@ -1,4 +1,5 @@ //! Position calculator to convert between byte, char, and line positions. +#![deny(missing_docs)] use std::ops::Range; @@ -125,6 +126,7 @@ impl Utf8Converter { self.line_begins.len() as u32 - 1 } + /// Returns true if the specified line is empty except for whitespace. pub fn only_whitespaces(&self, line_number: u32) -> bool { self.whitespace_only .get(line_number as usize)