Skip to content

Commit

Permalink
refactor: remove unnecessary to_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
murlakatamenka committed Mar 14, 2024
1 parent 8f22e6d commit 2666011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wayshot/src/wayshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ fn main() -> Result<()> {
}
} else if cli.choose_output {
let outputs = wayshot_conn.get_all_outputs();
let output_names: Vec<String> = outputs
let output_names: Vec<&str> = outputs
.iter()
.map(|display| display.name.to_string())
.map(|display| display.name.as_str())
.collect();
if let Some(index) = select_ouput(&output_names) {
wayshot_conn.screenshot_single_output(&outputs[index], cli.cursor)?
Expand Down

0 comments on commit 2666011

Please sign in to comment.