all: use let chains
This commit is contained in:
parent
3d5d146d65
commit
286857971a
89 changed files with 1516 additions and 1574 deletions
|
|
@ -37,15 +37,15 @@ impl ZwpLinuxDmabufV1Global {
|
|||
});
|
||||
track!(client, obj);
|
||||
client.add_client_obj(&obj)?;
|
||||
if version < FEEDBACK_SINCE_VERSION {
|
||||
if let Some(ctx) = client.state.render_ctx.get() {
|
||||
let formats = ctx.formats();
|
||||
for format in formats.values() {
|
||||
obj.send_format(format.format.drm);
|
||||
if version >= MODIFIERS_SINCE_VERSION {
|
||||
for &modifier in &format.read_modifiers {
|
||||
obj.send_modifier(format.format.drm, modifier);
|
||||
}
|
||||
if version < FEEDBACK_SINCE_VERSION
|
||||
&& let Some(ctx) = client.state.render_ctx.get()
|
||||
{
|
||||
let formats = ctx.formats();
|
||||
for format in formats.values() {
|
||||
obj.send_format(format.format.drm);
|
||||
if version >= MODIFIERS_SINCE_VERSION {
|
||||
for &modifier in &format.read_modifiers {
|
||||
obj.send_modifier(format.format.drm, modifier);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue