Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)

This commit is contained in:
Simon Sapin 2019-07-31 13:34:01 +02:00
parent 87e7e3d429
commit c38c964f1b
38 changed files with 118 additions and 109 deletions

View file

@ -996,7 +996,8 @@ impl<T: ClipboardProvider> TextInput<T> {
self.lines
.iter()
.fold(UTF16CodeUnits::zero(), |m, l| {
m + UTF16CodeUnits(l.chars().map(char::len_utf16).sum::<usize>() + 1) // + 1 for the '\n'
m + UTF16CodeUnits(l.chars().map(char::len_utf16).sum::<usize>() + 1)
// + 1 for the '\n'
})
.saturating_sub(UTF16CodeUnits::one())
}