mirror of
https://github.com/typst/typst
synced 2025-08-12 14:17:55 +08:00
Fix return type of missing_method
(#6718)
This commit is contained in:
parent
da6aedf7a4
commit
df9a9caee0
@ -1,5 +1,6 @@
|
|||||||
//! Handles special built-in methods on values.
|
//! Handles special built-in methods on values.
|
||||||
|
|
||||||
|
use ecow::{EcoString, eco_format};
|
||||||
use typst_library::diag::{At, SourceResult};
|
use typst_library::diag::{At, SourceResult};
|
||||||
use typst_library::foundations::{Args, Str, Type, Value};
|
use typst_library::foundations::{Args, Str, Type, Value};
|
||||||
use typst_syntax::Span;
|
use typst_syntax::Span;
|
||||||
@ -86,6 +87,6 @@ pub(crate) fn call_method_access<'a>(
|
|||||||
|
|
||||||
/// The missing method error message.
|
/// The missing method error message.
|
||||||
#[cold]
|
#[cold]
|
||||||
fn missing_method(ty: Type, method: &str) -> String {
|
fn missing_method(ty: Type, method: &str) -> EcoString {
|
||||||
format!("type {ty} has no method `{method}`")
|
eco_format!("type {ty} has no method `{method}`")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user