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/02-sum/output/rust/src/shapes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/02-sum/output/rust/src/shapes.rs') diff --git a/examples/02-sum/output/rust/src/shapes.rs b/examples/02-sum/output/rust/src/shapes.rs index f06dd2b..1d2d00f 100644 --- a/examples/02-sum/output/rust/src/shapes.rs +++ b/examples/02-sum/output/rust/src/shapes.rs @@ -7,13 +7,13 @@ pub enum Shape { Triangle(crate::shapes::Triangle), } -impl ::std::convert::From for crate::shapes::Shape { +impl ::std::convert::From:: for crate::shapes::Shape { fn from(value: crate::shapes::Rectangle) -> Self { Self::Rectangle(value) } } -impl ::std::convert::From for crate::shapes::Shape { +impl ::std::convert::From:: for crate::shapes::Shape { fn from(value: crate::shapes::Triangle) -> Self { Self::Triangle(value) } -- cgit v1.2.3