Skip to content

Commit

Permalink
unix: fix lint #build-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
amodm committed Mar 5, 2024
1 parent 98172a0 commit c53c4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ fn open_using_xdg_config(config_path: &PathBuf, options: &BrowserOptions, url: &

// we capture important keys under the [Desktop Entry] section, as defined under:
// https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html
for line in BufReader::new(file).lines().flatten() {
for line in BufReader::new(file).lines().map_while(Result::ok) {
if line == "[Desktop Entry]" {
in_desktop_entry = true;
} else if line.starts_with('[') {
Expand Down

0 comments on commit c53c4d7

Please sign in to comment.