Formats a Duration into a human-readable string for display in clap help text and yields a &'static str by _leaking_ the string deliberately.
(duration: Duration)
| 18 | // Formats a Duration into a human-readable string for display in clap help text and yields a |
| 19 | // &'static str by _leaking_ the string deliberately. |
| 20 | pub fn duration_to_human_readable_string(duration: Duration) -> &'static str { |
| 21 | Box::new(humantime::format_duration(duration).to_string()).leak() |
| 22 | } |
| 23 | |
| 24 | #[derive(clap::Args, Copy, Clone, Debug, PartialEq, Eq)] |
| 25 | pub struct GrpcOptionsInternal { |
nothing calls this directly
no outgoing calls
no test coverage detected