Format a deprecation message as a Markdown line for hover output. Returns `"🪦 **deprecated**"` when the message is empty, or `"🪦 **deprecated** Use foo() instead."` when a message is present.
(msg: &str)
| 36 | /// Returns `"🪦 **deprecated**"` when the message is empty, or |
| 37 | /// `"🪦 **deprecated** Use foo() instead."` when a message is present. |
| 38 | pub(super) fn format_deprecation_line(msg: &str) -> String { |
| 39 | if msg.is_empty() { |
| 40 | "🪦 **deprecated**".to_string() |
| 41 | } else { |
| 42 | format!("🪦 **deprecated** {}", msg) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | /// Format a visibility keyword. |
| 47 | pub(super) fn format_visibility(vis: Visibility) -> &'static str { |
no test coverage detected