| 1 |
Description: avoid tests failing with optimized build |
| 2 |
Author: Jonas Smedegaard <[email protected]> |
| 3 |
Bug-Debian: https://bugs.debian.org/1120257 |
| 4 |
Forwarded: not-needed |
| 5 |
Last-Update: 2025-12-08 |
| 6 |
--- |
| 7 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 8 |
--- a/helix-term/src/compositor.rs |
| 9 |
+++ b/helix-term/src/compositor.rs |
| 10 |
@@ -246,7 +246,7 @@ |
| 11 |
/// |
| 12 |
/// # Examples |
| 13 |
/// |
| 14 |
|
| 15 |
+ /// ```rust,no_run |
| 16 |
/// use helix_term::{ui::Text, compositor::Component}; |
| 17 |
/// let boxed: Box<dyn Component> = Box::new(Text::new("text".to_string())); |
| 18 |
/// let text: Box<Text> = boxed.as_boxed_any().downcast().unwrap(); |
| 19 |
--- a/helix-term/src/keymap/macros.rs |
| 20 |
+++ b/helix-term/src/keymap/macros.rs |
| 21 |
@@ -64,7 +64,7 @@ |
| 22 |
|
| 23 |
/// Macro for defining a `KeyTrie`. Example: |
| 24 |
/// |
| 25 |
|
| 26 |
+/// ```no_run |
| 27 |
/// # use helix_core::hashmap; |
| 28 |
/// # use helix_term::keymap; |
| 29 |
/// let normal_mode = keymap!({ "Normal mode" |