mod algorithms; use algorithms::insertionsort::Insertionsort; use algorithms::Algorithm; fn main() { let unsorted: Vec = vec![2498, 29687, 24, 5, 94545, 8, 51, 152, 48, 871, 5]; let sorted = match Insertionsort::sort(unsorted) { Ok(v) => v, Err(e) => { println!("Something went wrong! {}", e); return; } }; println!("{:?}", sorted); }