We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f108cb commit 869c47dCopy full SHA for 869c47d
runtime_tracing_cli/src/main.rs
@@ -26,12 +26,10 @@ struct RuntimeTracingCli {
26
fn determine_file_format_from_name(s: &str) -> Option<TraceEventsFileFormat> {
27
if s.ends_with(".json") {
28
Some(TraceEventsFileFormat::Json)
29
+ } else if s.ends_with(".bin") {
30
+ Some(TraceEventsFileFormat::Binary)
31
} else {
- if s.ends_with(".bin") {
- Some(TraceEventsFileFormat::Binary)
32
- } else {
33
- None
34
- }
+ None
35
}
36
37
0 commit comments