1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

clippy fixes for rust 1.53

This commit is contained in:
Emil Ernerfeldt
2021-06-22 23:25:54 +02:00
parent 60fd70921d
commit 269a4538d9
11 changed files with 24 additions and 25 deletions

View File

@@ -4,6 +4,8 @@
//! If you want to manipulate RGBA colors use [`Rgba`].
//! If you want to manipulate colors in a way closer to how humans think about colors, use [`HsvaGamma`].
#![allow(clippy::wrong_self_convention)]
/// This format is used for space-efficient color representation (32 bits).
///
/// Instead of manipulating this directly it is often better

View File

@@ -583,6 +583,8 @@ impl Galley {
#[test]
fn test_text_layout() {
#![allow(clippy::bool_assert_comparison)]
impl PartialEq for Cursor {
fn eq(&self, other: &Cursor) -> bool {
(self.ccursor, self.rcursor, self.pcursor)