Skip to content

Commit c173103

Browse files
authored
Merge pull request #1254 from sdroege/clippy-warnings
Fix / work around a couple of new clippy 1.75 warnings
2 parents 68da79c + cfe7437 commit c173103

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

cairo/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ pub use crate::{
228228
enums::*,
229229
error::{BorrowError, Error, IoError, Result},
230230
font::{
231-
FontExtents, FontFace, FontOptions, FontSlant, FontType, FontWeight, Glyph, ScaledFont,
232-
TextCluster, TextExtents, UserFontFace,
231+
Antialias, FontExtents, FontFace, FontOptions, FontSlant, FontType, FontWeight, Glyph,
232+
HintMetrics, HintStyle, ScaledFont, SubpixelOrder, TextCluster, TextExtents, UserFontFace,
233233
},
234234
image_surface::{ImageSurface, ImageSurfaceData, ImageSurfaceDataOwned},
235235
matrices::Matrix,

gdk-pixbuf/src/prelude.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
// rustdoc-stripper-ignore-next
44
//! Traits intended for blanket imports.
55
6-
#[doc(hidden)]
7-
pub use gio::prelude::*;
86
#[doc(hidden)]
97
pub use glib::prelude::*;
108

9+
#[doc(hidden)]
10+
pub use gio::prelude::*;
11+
1112
pub use crate::{auto::traits::*, pixbuf_animation::PixbufAnimationExtManual};

gdk-pixbuf/src/subclass/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ pub mod pixbuf_animation_iter;
88
pub mod pixbuf_loader;
99

1010
pub mod prelude {
11-
pub use gio::subclass::prelude::*;
1211
pub use glib::subclass::prelude::*;
1312

13+
pub use gio::subclass::prelude::*;
14+
1415
pub use super::{
1516
pixbuf_animation::{PixbufAnimationImpl, PixbufAnimationImplExt},
1617
pixbuf_animation_iter::{PixbufAnimationIterImpl, PixbufAnimationIterImplExt},

glib-macros/tests/properties.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,9 @@ fn ext_trait() {
394394
let base: base::Base = glib::object::Object::builder().build();
395395
assert_eq!(BasePropertiesExt::overridden(&base), 42);
396396

397-
let foo: foo::Foo = glib::object::Object::builder().build();
398-
assert_eq!(BasePropertiesExt::overridden(&foo), 43);
399-
assert_eq!(foo.overridden(), 43);
397+
let foo_obj: foo::Foo = glib::object::Object::builder().build();
398+
assert_eq!(BasePropertiesExt::overridden(&foo_obj), 43);
399+
assert_eq!(foo_obj.overridden(), 43);
400400
}
401401

402402
#[test]

0 commit comments

Comments
 (0)