mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Improve Rust code clarity across the workspace
Document public APIs and non-obvious control flow so the protocol, simulator, and macro crates are easier to follow. Tighten a few helper paths and feature gates while preserving behavior and keeping the workspace warning-free.
This commit is contained in:
@@ -25,6 +25,12 @@ impl CompatibilityLogger {
|
||||
Self { min_level }
|
||||
}
|
||||
|
||||
/// Returns the minimum severity that passes the filter.
|
||||
#[must_use]
|
||||
pub const fn min_level(&self) -> LogLevel {
|
||||
self.min_level
|
||||
}
|
||||
|
||||
/// Returns whether a record at `level` would be accepted.
|
||||
///
|
||||
/// # Examples
|
||||
|
||||
Reference in New Issue
Block a user