mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-24 11:44:44 +00:00
fixed error off-by-one once and for all, and more restructuring+a load more to go until Im happy with it (aka never)
This commit is contained in:
parent
786e09bdcf
commit
e7221304da
29 changed files with 1319 additions and 1128 deletions
|
@ -15,7 +15,7 @@ pub use slog_scope_futures::FutureExt;
|
|||
|
||||
pub fn new_trace_id() -> String {
|
||||
let rng = CURRENT_RNG.with(|rng| rng.borrow_mut().gen::<[u8; 4]>());
|
||||
return format!("{:04x}", u32::from_be_bytes(rng));
|
||||
format!("{:04x}", u32::from_be_bytes(rng))
|
||||
}
|
||||
|
||||
pub fn set_level(level: Level) -> GlobalLoggerGuard {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue