Skip to content

Commit 778c2a9

Browse files
committed
misc: small fix or general refactoring i did not bother commenting
1 parent 3c9ad4f commit 778c2a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/session/loot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl Loot {
8989
let mut wtr = csv::Writer::from_writer(vec![]);
9090

9191
if !Path::new(path).exists() {
92-
wtr.write_record(&["found_at", "plugin", "target", "data"])
92+
wtr.write_record(["found_at", "plugin", "target", "data"])
9393
.map_err(|e| e.to_string())?;
9494
}
9595

@@ -100,7 +100,7 @@ impl Loot {
100100
.collect::<Vec<String>>()
101101
.join(";");
102102

103-
wtr.write_record(&[&self.found_at_string(), &self.plugin, &self.target, &data])
103+
wtr.write_record([&self.found_at_string(), &self.plugin, &self.target, &data])
104104
.map_err(|e| e.to_string())?;
105105

106106
String::from_utf8(wtr.into_inner().unwrap()).map_err(|e| e.to_string())

0 commit comments

Comments
 (0)