Skip to content

Commit

Permalink
fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
liias committed Jan 6, 2023
1 parent 4db9fdd commit 62d0c44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/linux_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ impl OsHelper {
return &self.app_repository;
}

pub fn get_installed_browsers(&self, schemes: &[&str]) -> Vec<InstalledBrowser> {
pub fn get_installed_browsers(&self, schemes: Vec<String>) -> Vec<InstalledBrowser> {
let mut browsers: Vec<InstalledBrowser> = Vec::new();

let app_infos: Vec<String> = schemes
let app_infos: Vec<AppInfo> = schemes
.iter()
.flat_map(|scheme| AppInfo::all_for_type("x-scheme-handler/" + scheme))
.flat_map(|scheme| AppInfo::all_for_type(format!("x-scheme-handler/{scheme}").as_str()))
.collect();

for app_info in app_infos {
Expand Down

0 comments on commit 62d0c44

Please sign in to comment.