diff --git a/src/make_prompt.rs b/src/make_prompt.rs index 78a78ca..0f9d6be 100644 --- a/src/make_prompt.rs +++ b/src/make_prompt.rs @@ -14,7 +14,7 @@ fn fixed_width(input: &String, len: usize) -> String { let cut_to = len - 1_usize; let start_from = clen - cut_to; - let cutted_result = &input[start_from..]; + let cutted_result: String = input.chars().skip(start_from).collect(); let mut result: String = String::from(PLACE_HOLDER); result.push_str(&cutted_result);