Skip to content

Commit

Permalink
misc: small fix or general refactoring i did not bother commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Nov 15, 2023
1 parent 3c9ad4f commit 778c2a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/session/loot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl Loot {
let mut wtr = csv::Writer::from_writer(vec![]);

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

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

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

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

0 comments on commit 778c2a9

Please sign in to comment.