diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-01 11:27:10 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-01 11:27:10 +0100 |
| commit | ab841188e3d2687ee8f436336e6fde337985a83e (patch) | |
| tree | 23504e66ea84e62e4354fa76ac199fc1ff658e8a /src/model/str.rs | |
| parent | 8f246406c61f3710fa6659e85d7c715b001ea05d (diff) | |
Bump `ecow`
Diffstat (limited to 'src/model/str.rs')
| -rw-r--r-- | src/model/str.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/model/str.rs b/src/model/str.rs index 3eee9506..5fcc1d05 100644 --- a/src/model/str.rs +++ b/src/model/str.rs @@ -15,14 +15,14 @@ use crate::geom::GenAlign; #[doc(hidden)] macro_rules! __format_str { ($($tts:tt)*) => {{ - $crate::model::Str::from($crate::model::format_eco!($($tts)*)) + $crate::model::Str::from($crate::model::eco_format!($($tts)*)) }}; } #[doc(inline)] pub use crate::__format_str as format_str; #[doc(hidden)] -pub use ecow::format_eco; +pub use ecow::eco_format; /// An immutable reference counted string. #[derive(Default, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] @@ -297,13 +297,13 @@ impl Str { /// The out of bounds access error message. #[cold] fn out_of_bounds(index: i64, len: i64) -> EcoString { - format_eco!("string index out of bounds (index: {}, len: {})", index, len) + eco_format!("string index out of bounds (index: {}, len: {})", index, len) } /// The char boundary access error message. #[cold] fn not_a_char_boundary(index: i64) -> EcoString { - format_eco!("string index {} is not a character boundary", index) + eco_format!("string index {} is not a character boundary", index) } /// The error message when the string is empty. @@ -449,7 +449,7 @@ pub struct Regex(regex::Regex); impl Regex { /// Create a new regular expression. pub fn new(re: &str) -> StrResult<Self> { - regex::Regex::new(re).map(Self).map_err(|err| format_eco!("{err}")) + regex::Regex::new(re).map(Self).map_err(|err| eco_format!("{err}")) } } |
