Skip to content

Commit 548955f

Browse files
authored
Merge pull request #1155 from gtk-rs/bilelmoussaoui/regen
Regenerate with latest gir/gir-files
2 parents 9b61929 + a638d94 commit 548955f

File tree

263 files changed

+1226
-5186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+1226
-5186
lines changed

cairo/src/context.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ impl fmt::Debug for RectangleList {
5353
}
5454
}
5555

56-
impl fmt::Display for RectangleList {
57-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
58-
write!(f, "RectangleList")
59-
}
60-
}
61-
6256
#[derive(Debug)]
6357
#[repr(transparent)]
6458
pub struct Context(ptr::NonNull<cairo_t>);
@@ -955,12 +949,6 @@ impl Context {
955949
}
956950
}
957951

958-
impl fmt::Display for Context {
959-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
960-
write!(f, "Context")
961-
}
962-
}
963-
964952
#[cfg(test)]
965953
mod tests {
966954
use float_eq::float_eq;
@@ -1014,6 +1002,5 @@ mod tests {
10141002
assert!(float_eq!(first_rect.y(), 0.0, abs <= 0.000_1));
10151003
assert!(float_eq!(first_rect.width(), 10.0, abs <= 0.000_1));
10161004
assert!(float_eq!(first_rect.height(), 10.0, abs <= 0.000_1));
1017-
assert_eq!(rect.to_string(), "RectangleList");
10181005
}
10191006
}

cairo/src/device.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::ffi::CString;
66
use std::marker::PhantomData;
77
#[cfg(feature = "script")]
88
use std::path::Path;
9-
use std::{fmt, ptr};
9+
use std::ptr;
1010

1111
#[cfg(feature = "use_glib")]
1212
use glib::translate::*;
@@ -236,7 +236,7 @@ impl Device {
236236
panic!("you need to enable \"xcb\" feature")
237237
}
238238
}
239-
d => panic!("invalid device type: {}", d),
239+
d => panic!("invalid device type: {:#?}", d),
240240
}
241241
}
242242

@@ -266,7 +266,7 @@ impl Device {
266266
panic!("you need to enable \"xcb\" feature")
267267
}
268268
}
269-
d => panic!("invalid device type: {}", d),
269+
d => panic!("invalid device type: {:#?}", d),
270270
}
271271
}
272272

@@ -296,7 +296,7 @@ impl Device {
296296
panic!("you need to enable \"xcb\" feature")
297297
}
298298
}
299-
d => panic!("invalid device type: {}", d),
299+
d => panic!("invalid device type: {:#?}", d),
300300
}
301301
}
302302

@@ -387,9 +387,3 @@ impl Drop for Device {
387387
}
388388
}
389389
}
390-
391-
impl fmt::Display for Device {
392-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
393-
write!(f, "Device")
394-
}
395-
}

0 commit comments

Comments
 (0)