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 3c9ad4f commit 778c2a9Copy full SHA for 778c2a9
src/session/loot.rs
@@ -89,7 +89,7 @@ impl Loot {
89
let mut wtr = csv::Writer::from_writer(vec![]);
90
91
if !Path::new(path).exists() {
92
- wtr.write_record(&["found_at", "plugin", "target", "data"])
+ wtr.write_record(["found_at", "plugin", "target", "data"])
93
.map_err(|e| e.to_string())?;
94
}
95
@@ -100,7 +100,7 @@ impl Loot {
100
.collect::<Vec<String>>()
101
.join(";");
102
103
- wtr.write_record(&[&self.found_at_string(), &self.plugin, &self.target, &data])
+ wtr.write_record([&self.found_at_string(), &self.plugin, &self.target, &data])
104
105
106
String::from_utf8(wtr.into_inner().unwrap()).map_err(|e| e.to_string())
0 commit comments