Upgrade to rustc 1.22.0-nightly (c6884b12d 2017-09-30)

A new `AddAssign` impl in the standard library made inference ambiguous.
This commit is contained in:
Simon Sapin 2017-10-01 14:50:25 +02:00
parent 65d9b345bb
commit b6bfdc982d
2 changed files with 2 additions and 2 deletions

View file

@ -236,7 +236,7 @@ impl<T: ClipboardProvider> TextInput<T> {
/// The length of the selected text in UTF-16 code units.
fn selection_utf16_len(&self) -> usize {
self.fold_selection_slices(0usize,
|len, slice| *len += slice.chars().map(char::len_utf16).sum())
|len, slice| *len += slice.chars().map(char::len_utf16).sum::<usize>())
}
/// Run the callback on a series of slices that, concatenated, make up the selected text.