aboutsummaryrefslogtreecommitdiff
path: root/bin/src/explain.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/src/explain.rs')
-rw-r--r--bin/src/explain.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/src/explain.rs b/bin/src/explain.rs
index 6aefa7e..de171aa 100644
--- a/bin/src/explain.rs
+++ b/bin/src/explain.rs
@@ -13,3 +13,14 @@ pub fn explain(code: u32) -> Result<&'static str, ExplainErr> {
13 .ok_or(ExplainErr::LintNotFound(code)), 13 .ok_or(ExplainErr::LintNotFound(code)),
14 } 14 }
15} 15}
16
17pub mod main {
18
19 use crate::{config::Explain as ExplainConfig, err::StatixErr};
20
21 pub fn main(explain_config: ExplainConfig) -> Result<(), StatixErr> {
22 let explanation = super::explain(explain_config.target)?;
23 println!("{}", explanation);
24 Ok(())
25 }
26}