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.
2 parents 03a352f + 4bf57b4 commit dcf12b4Copy full SHA for dcf12b4
crox/src/main.rs
@@ -5,6 +5,7 @@ use std::path::PathBuf;
5
use std::time::{Duration, SystemTime, UNIX_EPOCH};
6
7
use analyzeme::{ProfilingData, Timestamp};
8
+use measureme::file_header::FILE_EXTENSION;
9
10
use serde::ser::SerializeSeq;
11
use serde::{Serialize, Serializer};
@@ -219,7 +220,7 @@ fn file_prefixes_in_dir(opt: &Opt) -> Result<Vec<PathBuf>, std::io::Error> {
219
220
for entry in fs::read_dir(dir_path)? {
221
let entry = entry?;
222
let path = entry.path();
- if path.extension().filter(|e| *e == "events").is_some() {
223
+ if path.extension().filter(|e| *e == FILE_EXTENSION).is_some() {
224
result.push(path)
225
}
226
0 commit comments