diff options
author | Blaž Hrastnik | 2021-10-22 03:46:51 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-10-22 03:47:02 +0000 |
commit | 96945be1a8d551f09865f13a7d8972174dbbc1c8 (patch) | |
tree | e1bfa5223826aa09f24c2067173c9262d85d889a /helix-term/src | |
parent | 182a59b5528075c0171756bff71275db8a7995f0 (diff) |
Fix doctest broken on 2021 edition
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/compositor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs index cad1df05..dc8b91d7 100644 --- a/helix-term/src/compositor.rs +++ b/helix-term/src/compositor.rs @@ -207,7 +207,7 @@ pub trait AnyComponent { /// /// ```rust /// use helix_term::{ui::Text, compositor::Component}; - /// let boxed: Box<Component> = Box::new(Text::new("text".to_string())); + /// let boxed: Box<dyn Component> = Box::new(Text::new("text".to_string())); /// let text: Box<Text> = boxed.as_boxed_any().downcast().unwrap(); /// ``` fn as_boxed_any(self: Box<Self>) -> Box<dyn Any>; |