From 3e9a68f0235158f5ee2c70cb6b319b26e42fd810 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 14 Jul 2026 21:15:55 +0100 Subject: Combine Rust notions of paths --- examples/03-inductive-data-types/output/rust/src/arithmetic.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/03-inductive-data-types') diff --git a/examples/03-inductive-data-types/output/rust/src/arithmetic.rs b/examples/03-inductive-data-types/output/rust/src/arithmetic.rs index c9ea28d..9461bc4 100644 --- a/examples/03-inductive-data-types/output/rust/src/arithmetic.rs +++ b/examples/03-inductive-data-types/output/rust/src/arithmetic.rs @@ -2,17 +2,17 @@ #[derive(Debug, PartialEq)] pub enum Expression { - Add(::std::boxed::Box), + Add(::std::boxed::Box::), Const(crate::arithmetic::Const), } -impl ::std::convert::From for crate::arithmetic::Expression { +impl ::std::convert::From:: for crate::arithmetic::Expression { fn from(value: crate::arithmetic::Add) -> Self { Self::Add(::std::boxed::Box::new(value)) } } -impl ::std::convert::From for crate::arithmetic::Expression { +impl ::std::convert::From:: for crate::arithmetic::Expression { fn from(value: crate::arithmetic::Const) -> Self { Self::Const(value) } -- cgit v1.2.3