Function nag_driver::run
source · pub fn run<F, I, C>(cfg: C, callbacks: I) -> ExitCodewhere
F: Fn(&Session, &mut LintStore) + Send + Sync + 'static,
I: IntoIterator<Item = F>,
C: Into<String>,
Expand description
Shortcut for simple cases
Equivalent to
Driver::new()
.with_cfg(cfg)
.with_callbacks(callbacks)
.run()