Skip to content

Commit 80b3495

Browse files
gvozdvmozgubenfdking
authored andcommitted
refactor: simplify error handling in crawl method and clean up response processing
1 parent f6ac633 commit 80b3495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/lib/src/core/rules/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pub trait Rule: CloneRule + dyn_clone::DynClone + Debug + 'static + Send + Sync
179179
templated_file: &TemplatedFile,
180180
tree: ErasedSegment,
181181
config: &FluffConfig,
182-
) -> (Vec<SQLLintError>, Vec<LintFix>) {
182+
) -> Vec<SQLLintError> {
183183
let mut root_context = RuleContext::new(tables, dialect, config, tree.clone());
184184
let mut vs = Vec::new();
185185

@@ -190,7 +190,7 @@ pub trait Rule: CloneRule + dyn_clone::DynClone + Debug + 'static + Send + Sync
190190

191191
self.crawl_behaviour().crawl(&mut root_context, &mut |context| {
192192
let resp =
193-
std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| self.eval(context)));
193+
std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| self.eval(context)));
194194

195195
let resp = match resp {
196196
Ok(t) => t,

0 commit comments

Comments
 (0)