clippy fixes for rust 1.53

This commit is contained in:
Emil Ernerfeldt
2021-06-22 23:38:34 +02:00
parent 60fd70921d
commit 269a4538d9
11 changed files with 24 additions and 25 deletions
+2
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
+2
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)