()
| 723 | } |
| 724 | |
| 725 | fn uuid_short() -> String { |
| 726 | use std::time::{SystemTime, UNIX_EPOCH}; |
| 727 | |
| 728 | let now = SystemTime::now() |
| 729 | .duration_since(UNIX_EPOCH) |
| 730 | .unwrap_or_default() |
| 731 | .as_millis(); |
| 732 | format!("{:08x}", (now & 0xFFFF_FFFF) as u32) |
| 733 | } |
| 734 | |
| 735 | struct HookDef { |
| 736 | event: &'static str, |
nothing calls this directly
no outgoing calls
no test coverage detected