✨ feat: remove the empty_result_set option and helper functions
This commit is contained in:
parent
c5fca32553
commit
7e3b59e8c0
2 changed files with 0 additions and 18 deletions
|
@ -155,7 +155,6 @@ pub struct SearchResults {
|
|||
pub page_query: String,
|
||||
pub style: Style,
|
||||
pub engine_errors_info: Vec<EngineErrorInfo>,
|
||||
pub empty_result_set: bool,
|
||||
}
|
||||
|
||||
impl SearchResults {
|
||||
|
@ -179,7 +178,6 @@ impl SearchResults {
|
|||
page_query,
|
||||
style: Style::new("".to_string(), "".to_string()),
|
||||
engine_errors_info,
|
||||
empty_result_set: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -187,14 +185,4 @@ impl SearchResults {
|
|||
pub fn add_style(&mut self, style: Style) {
|
||||
self.style = style;
|
||||
}
|
||||
|
||||
/// A function which checks whether the results stored are empty or not.
|
||||
pub fn is_empty_result_set(&self) -> bool {
|
||||
self.results.is_empty()
|
||||
}
|
||||
|
||||
/// A setter function which sets the empty_result_set to true.
|
||||
pub fn set_empty_result_set(&mut self) {
|
||||
self.empty_result_set = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue