summaryrefslogtreecommitdiff
path: root/src/eval/value.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-04-18 19:10:55 +0200
committerLaurenz <laurmaedje@gmail.com>2023-04-18 19:16:13 +0200
commitd10b53df0b487036b0d639b6033f4568648cfff1 (patch)
tree5209581e847af37c9a770e2e7e43d95bff2e113f /src/eval/value.rs
parent35302d20047c58baa99065a4574eafe1920e7be6 (diff)
Clippy
Diffstat (limited to 'src/eval/value.rs')
-rw-r--r--src/eval/value.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs
index 3fd9ed42..53db169c 100644
--- a/src/eval/value.rs
+++ b/src/eval/value.rs
@@ -241,8 +241,8 @@ impl Hash for Value {
}
/// A dynamic value.
-#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Clone, Hash)]
+#[allow(clippy::derived_hash_with_manual_eq)]
pub struct Dynamic(Arc<dyn Bounds>);
impl Dynamic {
@@ -426,7 +426,7 @@ mod tests {
test(Value::None, "none");
test(false, "false");
test(12i64, "12");
- test(3.14, "3.14");
+ test(3.24, "3.24");
test(Abs::pt(5.5), "5.5pt");
test(Angle::deg(90.0), "90deg");
test(Ratio::one() / 2.0, "50%");