Skip to content

Commit bb65976

Browse files
committed
chore: Cargo fmt
1 parent 6360d42 commit bb65976

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/lib.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl<'a> DesktopEntry<'a> {
5858
self.desktop_entry("Comment", locale)
5959
}
6060

61-
pub fn decode<'b>(path: &'b Path, input: &'b str) -> Result<DesktopEntry<'b>, DecodeError> {
61+
pub fn decode<'b>(path: &'b Path, input: &'b str) -> Result<DesktopEntry<'b>, DecodeError> {
6262
let appid = path
6363
.file_stem()
6464
.ok_or(DecodeError::AppID)?
@@ -110,7 +110,11 @@ impl<'a> DesktopEntry<'a> {
110110
}
111111
}
112112

113-
Ok(DesktopEntry { appid, groups, path })
113+
Ok(DesktopEntry {
114+
appid,
115+
groups,
116+
path,
117+
})
114118
}
115119

116120
pub fn desktop_entry(&self, key: &str, locale: Option<&str>) -> Option<&'a str> {
@@ -209,7 +213,7 @@ pub enum PathSource {
209213
System,
210214
SystemFlatpak,
211215
SystemSnap,
212-
Other(String)
216+
Other(String),
213217
}
214218

215219
pub fn default_paths() -> Vec<(PathSource, PathBuf)> {
@@ -235,4 +239,4 @@ pub fn default_paths() -> Vec<(PathSource, PathBuf)> {
235239
),
236240
(PathSource::System, PathBuf::from("/usr/share/applications")),
237241
]
238-
}
242+
}

0 commit comments

Comments
 (0)