From 9fe9b95b7f257100b9242913ae079752b232bb87 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 10 Jul 2021 23:00:03 +0200 Subject: Simpler casting --- src/pretty.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pretty.rs') diff --git a/src/pretty.rs b/src/pretty.rs index 2a825b14..10e4fbcb 100644 --- a/src/pretty.rs +++ b/src/pretty.rs @@ -487,7 +487,7 @@ impl Pretty for Value { Self::Dict(v) => v.pretty(p), Self::Template(v) => v.pretty(p), Self::Func(v) => v.pretty(p), - Self::Any(v) => v.pretty(p), + Self::Dyn(v) => v.pretty(p), Self::Error => p.push_str(""), } } @@ -603,7 +603,7 @@ pretty_display! { Fractional, RgbaColor, Color, - AnyValue, + Dynamic, } #[cfg(test)] @@ -757,7 +757,7 @@ mod tests { Function::new(Some("nil".into()), |_, _| Value::None), "", ); - test_value(AnyValue::new(1), "1"); + test_value(Dynamic::new(1), "1"); test_value(Value::Error, ""); } } -- cgit v1.2.3