From 1efe142566b6911883625f9bb9e166810912e6af Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Sun, 29 Mar 2020 23:12:26 +0100 Subject: [PATCH] Fix clippy warning --- tests/test_arithmetics.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_arithmetics.rs b/tests/test_arithmetics.rs index 2072ae045bf..8b1260dc957 100755 --- a/tests/test_arithmetics.rs +++ b/tests/test_arithmetics.rs @@ -49,10 +49,10 @@ fn unary_arithmetic() { let gil = Python::acquire_gil(); let py = gil.python(); - let c = PyCell::new(py, UnaryArithmetic::new(2.718281)).unwrap(); - py_run!(py, c, "assert repr(-c) == 'UA(-2.718281)'"); - py_run!(py, c, "assert repr(+c) == 'UA(2.718281)'"); - py_run!(py, c, "assert repr(abs(c)) == 'UA(2.718281)'"); + let c = PyCell::new(py, UnaryArithmetic::new(2.7)).unwrap(); + py_run!(py, c, "assert repr(-c) == 'UA(-2.7)'"); + py_run!(py, c, "assert repr(+c) == 'UA(2.7)'"); + py_run!(py, c, "assert repr(abs(c)) == 'UA(2.7)'"); py_run!(py, c, "assert repr(round(c)) == 'UA(3)'"); py_run!(py, c, "assert repr(round(c, 1)) == 'UA(3)'"); }