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/module.rs | |
| parent | 8f246406c61f3710fa6659e85d7c715b001ea05d (diff) | |
Bump `ecow`
Diffstat (limited to 'src/model/module.rs')
| -rw-r--r-- | src/model/module.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/module.rs b/src/model/module.rs index 97c060e3..e911d859 100644 --- a/src/model/module.rs +++ b/src/model/module.rs @@ -1,7 +1,7 @@ use std::fmt::{self, Debug, Formatter}; use std::sync::Arc; -use ecow::{format_eco, EcoString}; +use ecow::{eco_format, EcoString}; use super::{Content, Scope, Value}; use crate::diag::StrResult; @@ -61,7 +61,7 @@ impl Module { /// Try to access a definition in the module. pub fn get(&self, name: &str) -> StrResult<&Value> { self.scope().get(&name).ok_or_else(|| { - format_eco!("module `{}` does not contain `{name}`", self.name()) + eco_format!("module `{}` does not contain `{name}`", self.name()) }) } |
