Skip to content

Commit

Permalink
Merge pull request #1155 from gtk-rs/bilelmoussaoui/regen
Browse files Browse the repository at this point in the history
Regenerate with latest gir/gir-files
  • Loading branch information
sdroege authored Sep 27, 2023
2 parents 9b61929 + a638d94 commit 548955f
Show file tree
Hide file tree
Showing 263 changed files with 1,226 additions and 5,186 deletions.
13 changes: 0 additions & 13 deletions cairo/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ impl fmt::Debug for RectangleList {
}
}

impl fmt::Display for RectangleList {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "RectangleList")
}
}

#[derive(Debug)]
#[repr(transparent)]
pub struct Context(ptr::NonNull<cairo_t>);
Expand Down Expand Up @@ -955,12 +949,6 @@ impl Context {
}
}

impl fmt::Display for Context {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Context")
}
}

#[cfg(test)]
mod tests {
use float_eq::float_eq;
Expand Down Expand Up @@ -1014,6 +1002,5 @@ mod tests {
assert!(float_eq!(first_rect.y(), 0.0, abs <= 0.000_1));
assert!(float_eq!(first_rect.width(), 10.0, abs <= 0.000_1));
assert!(float_eq!(first_rect.height(), 10.0, abs <= 0.000_1));
assert_eq!(rect.to_string(), "RectangleList");
}
}
14 changes: 4 additions & 10 deletions cairo/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::ffi::CString;
use std::marker::PhantomData;
#[cfg(feature = "script")]
use std::path::Path;
use std::{fmt, ptr};
use std::ptr;

#[cfg(feature = "use_glib")]
use glib::translate::*;
Expand Down Expand Up @@ -236,7 +236,7 @@ impl Device {
panic!("you need to enable \"xcb\" feature")
}
}
d => panic!("invalid device type: {}", d),
d => panic!("invalid device type: {:#?}", d),
}
}

Expand Down Expand Up @@ -266,7 +266,7 @@ impl Device {
panic!("you need to enable \"xcb\" feature")
}
}
d => panic!("invalid device type: {}", d),
d => panic!("invalid device type: {:#?}", d),
}
}

Expand Down Expand Up @@ -296,7 +296,7 @@ impl Device {
panic!("you need to enable \"xcb\" feature")
}
}
d => panic!("invalid device type: {}", d),
d => panic!("invalid device type: {:#?}", d),
}
}

Expand Down Expand Up @@ -387,9 +387,3 @@ impl Drop for Device {
}
}
}

impl fmt::Display for Device {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Device")
}
}
Loading

0 comments on commit 548955f

Please sign in to comment.