refactor: refactor

This commit is contained in:
graelo 2020-05-25 23:32:37 +02:00
parent 905bd2862c
commit b3099b42c9
3 changed files with 31 additions and 26 deletions

View file

@ -14,7 +14,7 @@ pub struct View<'a> {
matches: Vec<state::Match<'a>>,
focus_index: usize,
multi: bool,
hint_alignment: HintAlignment,
hint_alignment: &'a HintAlignment,
rendering_colors: &'a ViewColors,
hint_style: Option<HintStyle>,
}
@ -91,7 +91,7 @@ impl<'a> View<'a> {
multi: bool,
reversed: bool,
unique: bool,
hint_alignment: HintAlignment,
hint_alignment: &'a HintAlignment,
rendering_colors: &'a ViewColors,
hint_style: Option<HintStyle>,
) -> View<'a> {
@ -703,7 +703,7 @@ Barcelona https://en.wikipedia.org/wiki/Barcelona - ";
matches: vec![], // no matches
focus_index: 0,
multi: false,
hint_alignment,
hint_alignment: &hint_alignment,
rendering_colors: &rendering_colors,
hint_style: None,
};
@ -764,7 +764,7 @@ Barcelona https://en.wikipedia.org/wiki/Barcelona - ";
multi,
reversed,
unique,
hint_alignment,
&hint_alignment,
&rendering_colors,
hint_style,
);