File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ impl<'a> DesktopEntry<'a> {
58
58
self . desktop_entry ( "Comment" , locale)
59
59
}
60
60
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 > {
62
62
let appid = path
63
63
. file_stem ( )
64
64
. ok_or ( DecodeError :: AppID ) ?
@@ -110,7 +110,11 @@ impl<'a> DesktopEntry<'a> {
110
110
}
111
111
}
112
112
113
- Ok ( DesktopEntry { appid, groups, path } )
113
+ Ok ( DesktopEntry {
114
+ appid,
115
+ groups,
116
+ path,
117
+ } )
114
118
}
115
119
116
120
pub fn desktop_entry ( & self , key : & str , locale : Option < & str > ) -> Option < & ' a str > {
@@ -209,7 +213,7 @@ pub enum PathSource {
209
213
System ,
210
214
SystemFlatpak ,
211
215
SystemSnap ,
212
- Other ( String )
216
+ Other ( String ) ,
213
217
}
214
218
215
219
pub fn default_paths ( ) -> Vec < ( PathSource , PathBuf ) > {
@@ -235,4 +239,4 @@ pub fn default_paths() -> Vec<(PathSource, PathBuf)> {
235
239
) ,
236
240
( PathSource :: System , PathBuf :: from( "/usr/share/applications" ) ) ,
237
241
]
238
- }
242
+ }
You can’t perform that action at this time.
0 commit comments