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/ops.rs | |
| parent | 8f246406c61f3710fa6659e85d7c715b001ea05d (diff) | |
Bump `ecow`
Diffstat (limited to 'src/model/ops.rs')
| -rw-r--r-- | src/model/ops.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/ops.rs b/src/model/ops.rs index be7892f9..52b9b06a 100644 --- a/src/model/ops.rs +++ b/src/model/ops.rs @@ -2,7 +2,7 @@ use std::cmp::Ordering; -use ecow::format_eco; +use ecow::eco_format; use super::{format_str, Regex, Value}; use crate::diag::StrResult; @@ -12,7 +12,7 @@ use Value::*; /// Bail with a type mismatch error. macro_rules! mismatch { ($fmt:expr, $($value:expr),* $(,)?) => { - return Err(format_eco!($fmt, $($value.type_name()),*)) + return Err(eco_format!($fmt, $($value.type_name()),*)) }; } @@ -117,7 +117,7 @@ pub fn add(lhs: Value, rhs: Value) -> StrResult<Value> { (a.downcast::<GenAlign>(), b.downcast::<GenAlign>()) { if a.axis() == b.axis() { - return Err(format_eco!("cannot add two {:?} alignments", a.axis())); + return Err(eco_format!("cannot add two {:?} alignments", a.axis())); } return Ok(Value::dynamic(match a.axis() { |
