mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
remove extra components, apply clippy
This commit is contained in:
parent
dd5d79bac4
commit
0abc4e8932
2 changed files with 1 additions and 17 deletions
|
|
@ -58,10 +58,6 @@ impl Search {
|
|||
|
||||
// Actions
|
||||
|
||||
pub fn escape(&self) {
|
||||
self.hide()
|
||||
}
|
||||
|
||||
pub fn show(&self) {
|
||||
if self.subject.borrow().is_some() {
|
||||
self.form.show();
|
||||
|
|
@ -87,9 +83,6 @@ impl Search {
|
|||
|
||||
/// * currently supports [TextView](https://docs.gtk.org/gtk4/class.TextView.html) only
|
||||
pub fn update(&self, text_view: Option<TextView>) {
|
||||
self.subject.replace(match text_view {
|
||||
Some(subject) => Some(Subject::new(subject)),
|
||||
None => None,
|
||||
});
|
||||
self.subject.replace(text_view.map(Subject::new));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue