From 4a140f90ccc2090a6722b1108de22c09fe89785b Mon Sep 17 00:00:00 2001 From: Ashish Myles Date: Mon, 6 Jan 2025 23:04:12 -0500 Subject: [PATCH] Minor update to README to remove fully-qualified path for macro invocation. --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af583f7..cce9aef 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ use downcast_rs::{Downcast, impl_downcast}; // To create a trait with downcasting methods, extend `Downcast` or `DowncastSync` // and run `impl_downcast!()` on the trait. trait Base: Downcast { type H: Copy; } -downcast_rs::impl_downcast!(Base assoc H where T: Clone, H: Copy); +impl_downcast!(Base assoc H where T: Clone, H: Copy); // or: impl_downcast!(concrete Base assoc H=f32) // Concrete types implementing Base. diff --git a/src/lib.rs b/src/lib.rs index ec16716..0a70640 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -143,7 +143,7 @@ //! // To create a trait with downcasting methods, extend `Downcast` or `DowncastSync` //! // and run `impl_downcast!()` on the trait. //! trait Base: Downcast { type H: Copy; } -//! downcast_rs::impl_downcast!(Base assoc H where T: Clone, H: Copy); +//! impl_downcast!(Base assoc H where T: Clone, H: Copy); //! // or: impl_downcast!(concrete Base assoc H=f32) //! //! // Concrete types implementing Base.