Commit 4075ab9b authored by Daniel García Moreno's avatar Daniel García Moreno

Remove non needed to_string() for slice string

parent 3645d564
......@@ -366,7 +366,7 @@ fn get_selected_text(event_widget: Option<&gtk::Widget>) -> Option<SelectedText>
let slice: String = text.chars()
.take(e as usize).skip(s as usize)
Some(SelectedText{ widget: w.clone(), text: slice.to_string(), start: s, end: e })
Some(SelectedText{ widget: w.clone(), text: slice, start: s, end: e })
_ => None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment