Explain runtime invariants and avoid redundant unwraps
This commit is contained in:
1 parent
34f2f07301
commit
1b51ba83b4
116 files changed
+1643
-515
No files matched your search
@@ -328,7 +328,9 @@ impl App {
|
||||
return setting(
|
||||
&self.draft,
|
||||
self.wallpaper.target,
|
||||
path.rsplit('.').next().unwrap(),
|
||||
path.rsplit('.')
|
||||
.next()
|
||||
.expect("splitting a field path always yields its final component"),
|
||||
fallback,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user