code: Use chained if-let's
This commit is contained in:
parent
f806bbd484
commit
8972c5efb9
12 changed files with 219 additions and 235 deletions
|
|
@ -201,10 +201,10 @@ impl Decoder {
|
|||
|
||||
/// Request missing tiles
|
||||
pub fn request(&self, tile_request: TileRequest) {
|
||||
if let FormatDecoder::Svg(svg) = &self.decoder {
|
||||
if let Err(err) = svg.request(tile_request) {
|
||||
tracing::error!("Failed to request new SVG tiles: {err}");
|
||||
}
|
||||
if let FormatDecoder::Svg(svg) = &self.decoder
|
||||
&& let Err(err) = svg.request(tile_request)
|
||||
{
|
||||
tracing::error!("Failed to request new SVG tiles: {err}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue