Consolidate suggestions code (#2597)

This commit is contained in:
Chris Gillespie
2020-09-24 20:44:24 -07:00
committed by GitHub
parent bd9e598bf0
commit a8b65e35ec
9 changed files with 39 additions and 100 deletions

View File

@ -105,7 +105,7 @@ impl Inc {
&f,
move |obj_source, column_path_tried, _| match did_you_mean(
&obj_source,
&column_path_tried,
column_path_tried.as_string(),
) {
Some(suggestions) => ShellError::labeled_error(
"Unknown column",