Simplify redundant code
This commit is contained in:
parent
5f8a206036
commit
4f9e1cf394
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ pub fn display_configuration(
|
|||
.iter()
|
||||
.flat_map(|conn| device.get_connector(*conn).ok())
|
||||
{
|
||||
if let Some(enc) = device.get_connector(conn.handle())?.current_encoder() {
|
||||
if let Some(enc) = conn.current_encoder() {
|
||||
if let Some(crtc) = device.get_encoder(enc)?.crtc() {
|
||||
// If is is connected we found a mapping
|
||||
if conn.state() == ConnectorState::Connected {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue