Unnamed repository; edit this file 'description' to name the repository.
replace `one` with `ascii`
CAD97 2020-03-19
parent 0c77efb · commit e89c6e8
-rw-r--r--lib/text-size/src/size.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/text-size/src/size.rs b/lib/text-size/src/size.rs
index 4436b9f6f2..ed4e849d51 100644
--- a/lib/text-size/src/size.rs
+++ b/lib/text-size/src/size.rs
@@ -59,12 +59,6 @@ impl TextSize {
pub const fn zero() -> TextSize {
TextSize(0)
}
-
- /// A size of one.
- #[inline]
- pub const fn one() -> TextSize {
- TextSize(1)
- }
}
/// Methods to act like a primitive integer type, where reasonably applicable.
@@ -75,7 +69,7 @@ impl TextSize {
/// The largest representable text size. (`u32::MAX`)
pub const MAX: TextSize = TextSize(u32::MAX);
/// The text size of a single ASCII character.
- pub const ONE: TextSize = TextSize(1);
+ pub const ASCII: TextSize = TextSize(1);
/// Checked addition. Returns `None` if overflow occurred.
#[inline]