diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-10 23:00:03 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-11 13:20:53 +0200 |
| commit | 9fe9b95b7f257100b9242913ae079752b232bb87 (patch) | |
| tree | c68a2b93b45e9bed5e1706da76a82a5c3f8ddd16 /src/pretty.rs | |
| parent | 891e0c5fa6cd9200c24011c33b6f2115d84d4d74 (diff) | |
Simpler casting
Diffstat (limited to 'src/pretty.rs')
| -rw-r--r-- | src/pretty.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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("<error>"), } } @@ -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), "<function nil>", ); - test_value(AnyValue::new(1), "1"); + test_value(Dynamic::new(1), "1"); test_value(Value::Error, "<error>"); } } |
