We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4ec4ac commit ca488c2Copy full SHA for ca488c2
1 file changed
plotly_kaleido/src/lib.rs
@@ -183,12 +183,10 @@ impl Kaleido {
183
height: usize,
184
scale: f64,
185
) -> Result<String, Box<dyn std::error::Error>> {
186
- let p = self.cmd_path.as_path();
187
- let p = p.to_str().unwrap();
188
- let p = String::from(p);
+ let p = self.cmd_path.to_str().unwrap();
189
190
#[allow(clippy::zombie_processes)]
191
- let mut process = Command::new(p.as_str())
+ let mut process = Command::new(p)
192
.current_dir(self.cmd_path.parent().unwrap())
193
.args([
194
"plotly",
0 commit comments