Apply suggestions from code review

Co-authored-by: Victoria Brekenfeld <4404502+Drakulix@users.noreply.github.com>
This commit is contained in:
Richard Weber 2024-09-04 21:20:21 +03:00 committed by Victoria Brekenfeld
parent 5482ff65e5
commit bd95340992
2 changed files with 9 additions and 3 deletions

View file

@ -61,7 +61,10 @@ pub struct TilingExceptions {
}
impl TilingExceptions {
pub fn new(exceptions_config: &Vec<ApplicationException>) -> Self {
pub fn new<'a, I>(exceptions_config: I) -> Self
where
I: Iterator<Item=&'a ApplicationException>
{
let mut app_ids = Vec::new();
let mut titles = Vec::new();