mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
style(comments): remove decorative comment borders across files for consistency and cleaner code structure
This commit is contained in:
parent
321d0a61ab
commit
879f965379
39 changed files with 16 additions and 379 deletions
10
src/fmt.rs
10
src/fmt.rs
|
|
@ -13,9 +13,7 @@ use std::collections::BTreeMap;
|
|||
/// Default maximum line width when terminal size is unknown.
|
||||
const DEFAULT_WIDTH: usize = 100;
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
// Public API
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
/// Render all diagnostics as grouped, formatted console output with a summary.
|
||||
///
|
||||
|
|
@ -190,9 +188,7 @@ pub fn shorten_callee(s: &str) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
// Welcome screen
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
/// Render the branded welcome screen shown when `nyx` is invoked with no arguments.
|
||||
pub fn render_welcome() -> String {
|
||||
|
|
@ -258,9 +254,7 @@ const LOGO: &[&str] = &[
|
|||
r"╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝",
|
||||
];
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
// Internal rendering
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
/// Indentation for body/evidence lines (spaces).
|
||||
const BODY_INDENT: usize = 6;
|
||||
|
|
@ -670,9 +664,7 @@ fn severity_tag(sev: Severity) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
// Text utilities
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
/// Collapse spacing artefacts in method chains.
|
||||
///
|
||||
|
|
@ -775,9 +767,7 @@ fn capitalize_first(s: &str) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
// Tests
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue