From 7f48e8fe6668c5b2fdc62cc70e6bcffb744f411c Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 31 Aug 2021 16:25:12 +0200 Subject: Make user-facing "debug" representation use Debug instead of Display --- src/library/utility.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library') diff --git a/src/library/utility.rs b/src/library/utility.rs index 19dfc3ec..d757a7f9 100644 --- a/src/library/utility.rs +++ b/src/library/utility.rs @@ -12,7 +12,7 @@ pub fn type_(_: &mut EvalContext, args: &mut Arguments) -> TypResult { /// `repr`: The string representation of a value. pub fn repr(_: &mut EvalContext, args: &mut Arguments) -> TypResult { - Ok(args.expect::("value")?.to_string().into()) + Ok(args.expect::("value")?.repr().into()) } /// `join`: Join a sequence of values, optionally interspersing it with another -- cgit v1.2.3