From fd417da04f7ca4b995de7f6510abafd3e9c31307 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 6 Jun 2023 21:13:59 +0200 Subject: Improve value casting infrastructure --- library/src/math/root.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'library/src/math/root.rs') diff --git a/library/src/math/root.rs b/library/src/math/root.rs index 05f3a2a7..d1c5f46a 100644 --- a/library/src/math/root.rs +++ b/library/src/math/root.rs @@ -9,13 +9,12 @@ use super::*; /// /// Display: Square Root /// Category: math -/// Returns: content #[func] pub fn sqrt( /// The expression to take the square root of. radicand: Content, -) -> Value { - RootElem::new(radicand).pack().into() +) -> Content { + RootElem::new(radicand).pack() } /// A general root. -- cgit v1.2.3