all: use let chains
This commit is contained in:
parent
3d5d146d65
commit
286857971a
89 changed files with 1516 additions and 1574 deletions
|
|
@ -46,10 +46,10 @@ const HOME: &str = "HOME";
|
|||
const HEADER_SIZE: u32 = 16;
|
||||
|
||||
pub static DEFAULT_CURSOR_SIZE: Lazy<u32> = Lazy::new(|| {
|
||||
if let Ok(size) = env::var(XCURSOR_SIZE) {
|
||||
if let Ok(val) = size.parse() {
|
||||
return val;
|
||||
}
|
||||
if let Ok(size) = env::var(XCURSOR_SIZE)
|
||||
&& let Ok(val) = size.parse()
|
||||
{
|
||||
return val;
|
||||
}
|
||||
24
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue