src: address a bunch of clippy::pedantic lints

This commit is contained in:
2025-10-28 02:53:20 -04:00
parent 0bf5a41498
commit 588606e0c4
8 changed files with 50 additions and 51 deletions

View File

@@ -16,7 +16,7 @@ impl std::fmt::Debug for Span {
#[expect(non_snake_case)]
/// Stores the start and end byte position
pub fn Span(head: u32, tail: u32) -> Span {
pub const fn Span(head: u32, tail: u32) -> Span {
Span { head, tail }
}