Skip to content

Commit

Permalink
Janitor: Fix clippy::needless_return
Browse files Browse the repository at this point in the history
  • Loading branch information
hunger authored and tronical committed Jul 30, 2021
1 parent f3171a8 commit f1f0182
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sixtyfps_runtime/corelib/sharedvector.rs
Expand Up @@ -118,7 +118,7 @@ impl<T> Clone for SharedVector<T> {
{
self.inner.as_ref().header.refcount.fetch_add(1, atomic::Ordering::SeqCst);
}
return SharedVector { inner: self.inner };
SharedVector { inner: self.inner }
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion sixtyfps_runtime/rendering_backends/gl/fonts.rs
Expand Up @@ -363,7 +363,7 @@ impl FontMetricsTrait for FontMetrics {
}
current_x += glyph.advance_x;
}
return text.len();
text.len()
}
}

Expand Down
2 changes: 1 addition & 1 deletion sixtyfps_runtime/rendering_backends/gl/images.rs
Expand Up @@ -289,7 +289,7 @@ impl CachedImage {
Ok(rendered_svg_image) => Some(Self::new_on_cpu(rendered_svg_image)),
Err(err) => {
eprintln!("Error rendering SVG: {}", err);
return None;
None
}
},
#[cfg(target_arch = "wasm32")]
Expand Down
2 changes: 1 addition & 1 deletion sixtyfps_runtime/rendering_backends/qt/qt_window.rs
Expand Up @@ -720,7 +720,7 @@ impl ItemRenderer for QtItemRenderer<'_> {
}

fn scale_factor(&self) -> f32 {
return 1.;
1.
/* cpp! { unsafe [painter as "QPainter*"] -> f32 as "float" {
return painter->paintEngine()->paintDevice()->devicePixelRatioF();
}} */
Expand Down

0 comments on commit f1f0182

Please sign in to comment.