[dependencies] algo_sorting = "0.0.1"
use algo_sorting; let mut arr = vec![3, 1, 2, 4, 6, 5]; let sorted = algo_sorting::bubble(&mut arr); assert!(sorted, vec![1, 2, 3, 4, 5, 6]);