Fix for itertools update: sort_by -> sorted_by
This commit is contained in:
parent
44f44a0c7f
commit
97eedf80fe
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ fn list(rt: &Runtime) {
|
||||||
.map_err_trace_exit(1)
|
.map_err_trace_exit(1)
|
||||||
.map(|iter| {
|
.map(|iter| {
|
||||||
let notes = iter.filter_map(|note| note.map_err_trace().ok())
|
let notes = iter.filter_map(|note| note.map_err_trace().ok())
|
||||||
.sort_by(|note_a, note_b| {
|
.sorted_by(|note_a, note_b| {
|
||||||
if let (Ok(a), Ok(b)) = (note_a.get_name(), note_b.get_name()) {
|
if let (Ok(a), Ok(b)) = (note_a.get_name(), note_b.get_name()) {
|
||||||
return a.cmp(&b)
|
return a.cmp(&b)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue