Fix doctest broken on 2021 edition
commit96945be1a8d551f09865f13a7d8972174dbbc1c8
authorBlaž Hrastnik <blaz@mxxn.io>
dateFri 22 Oct 2021, 12:46 (5 years ago)
parent182a59b
helix-term/src/compositor.rs+1−1
@@ -207,7 +207,7 @@ pub trait AnyComponent {
207207 ///
208208 /// ```rust
209209 /// use helix_term::{ui::Text, compositor::Component};
210− /// let boxed: Box<Component> = Box::new(Text::new("text".to_string()));
210+ /// let boxed: Box<dyn Component> = Box::new(Text::new("text".to_string()));
211211 /// let text: Box<Text> = boxed.as_boxed_any().downcast().unwrap();
212212 /// ```
213213 fn as_boxed_any(self: Box<Self>) -> Box<dyn Any>;