diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-31 16:25:12 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-31 16:25:12 +0200 |
| commit | 7f48e8fe6668c5b2fdc62cc70e6bcffb744f411c (patch) | |
| tree | 6ec437098d9f6df511cfbc0805ac51af288c4eec /src/library | |
| parent | 3481d8cc81a2b3a14118869c7f0ffe204ff3efc8 (diff) | |
Make user-facing "debug" representation use Debug instead of Display
Diffstat (limited to 'src/library')
| -rw-r--r-- | src/library/utility.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Value> { /// `repr`: The string representation of a value. pub fn repr(_: &mut EvalContext, args: &mut Arguments) -> TypResult<Value> { - Ok(args.expect::<Value>("value")?.to_string().into()) + Ok(args.expect::<Value>("value")?.repr().into()) } /// `join`: Join a sequence of values, optionally interspersing it with another |
