Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate with latest gir/gir-files #1155

Merged
merged 19 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
sdroege marked this conversation as resolved.
Show resolved Hide resolved
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