mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
chore: Fix lint errors in lookup.rs (#530)
- Made the lookup module crate-visible to address clippy’s redundant visibility lint. - Replaced unchecked as casts with a fallible usize_from_u32 helper and propagate conversion errors in lookup accessors. - Switched LookupIndexError to implement core::error::Error for no_std correctness. - Fixed the pattern type mismatch by matching on the value in the Display impl. - Promoted trivial helpers to const fn (new, module_len) per clippy suggestions. - Centralized bounds-checked slot access via slot_ref/slot_mut to keep getters/clearers lint-clean and avoid unchecked indexing. Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
249dcd0b43
commit
1d71df30b6
+1
-1
@@ -135,7 +135,7 @@ pub mod languages {
|
||||
}
|
||||
|
||||
mod lexer;
|
||||
mod lookup;
|
||||
pub(crate) mod lookup;
|
||||
mod number;
|
||||
mod parser;
|
||||
mod policy_info;
|
||||
|
||||
Reference in New Issue
Block a user