Add ability to specify user-defined functions for matcher

This commit is contained in:
Dima Kudosh
2016-02-28 21:35:03 +03:00
parent b2e0c729ff
commit a99af75280
5 changed files with 51 additions and 30 deletions
-1
View File
@@ -27,7 +27,6 @@ pub fn count_leading(line: &str, c: char) -> usize {
pub fn format_range_unified(start:usize, end: usize) -> String {
let mut beginning = start + 1;
println!("{:?} {}", start, end);
let length = end - start;
if length == 1 {
return beginning.to_string()