summaryrefslogtreecommitdiffstats
path: root/vendor/unicode-width/src
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/unicode-width/src')
-rw-r--r--vendor/unicode-width/src/lib.rs6
-rw-r--r--vendor/unicode-width/src/tables.rs6
2 files changed, 5 insertions, 7 deletions
diff --git a/vendor/unicode-width/src/lib.rs b/vendor/unicode-width/src/lib.rs
index 1ee35c85d..fac45fc45 100644
--- a/vendor/unicode-width/src/lib.rs
+++ b/vendor/unicode-width/src/lib.rs
@@ -59,8 +59,6 @@ extern crate test;
use tables::charwidth as cw;
pub use tables::UNICODE_VERSION;
-use core::ops::Add;
-
mod tables;
#[cfg(test)]
@@ -121,11 +119,11 @@ pub trait UnicodeWidthStr {
impl UnicodeWidthStr for str {
#[inline]
fn width(&self) -> usize {
- self.chars().map(|c| cw::width(c, false).unwrap_or(0)).fold(0, Add::add)
+ self.chars().map(|c| cw::width(c, false).unwrap_or(0)).sum()
}
#[inline]
fn width_cjk(&self) -> usize {
- self.chars().map(|c| cw::width(c, true).unwrap_or(0)).fold(0, Add::add)
+ self.chars().map(|c| cw::width(c, true).unwrap_or(0)).sum()
}
}
diff --git a/vendor/unicode-width/src/tables.rs b/vendor/unicode-width/src/tables.rs
index 439c69c80..791d7a898 100644
--- a/vendor/unicode-width/src/tables.rs
+++ b/vendor/unicode-width/src/tables.rs
@@ -12,7 +12,7 @@
/// The version of [Unicode](http://www.unicode.org/)
/// that this version of unicode-width is based on.
-pub const UNICODE_VERSION: (u8, u8, u8) = (15, 0, 0);
+pub const UNICODE_VERSION: (u8, u8, u8) = (15, 1, 0);
pub mod charwidth {
use core::option::Option::{self, None, Some};
@@ -395,13 +395,13 @@ pub mod charwidth {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0x9A, 0xAA, 0xAA, 0xAA, 0xAA,
0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0x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