Rust: avoid double '.' in trap extension

This commit is contained in:
Arthur Baars
2024-09-26 05:15:41 +02:00
parent 4df9cd88ef
commit 7986fc7036

View File

@@ -244,7 +244,7 @@ impl TrapFileProvider {
}
pub fn create(&self, category: &str, key: &Path) -> TrapFile {
let path = file_paths::path_for(&self.trap_dir.join(category), key, ".trap");
let path = file_paths::path_for(&self.trap_dir.join(category), key, "trap");
debug!("creating trap file {}", path.display());
let mut writer = trap::Writer::new();
extractor::populate_empty_location(&mut writer);