mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
clippy: fix if_not_else warning 'breaking' the build. Swap blocks and change to "==".
This commit is contained in:
parent
2c443425b0
commit
b5571da0f3
1 changed files with 3 additions and 3 deletions
|
@ -1078,10 +1078,10 @@ impl ShaderProgram {
|
||||||
let mut success: GLint = 0;
|
let mut success: GLint = 0;
|
||||||
gl::GetProgramiv(program, gl::LINK_STATUS, &mut success);
|
gl::GetProgramiv(program, gl::LINK_STATUS, &mut success);
|
||||||
|
|
||||||
if success != (gl::TRUE as GLint) {
|
if success == (gl::TRUE as GLint) {
|
||||||
Err(ShaderCreationError::Link(get_program_info_log(program)))
|
|
||||||
} else {
|
|
||||||
Ok(program)
|
Ok(program)
|
||||||
|
} else {
|
||||||
|
Err(ShaderCreationError::Link(get_program_info_log(program)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue