small changes to satisfy karx

This commit is contained in:
Akshat Deshpande 2022-08-01 22:36:30 -05:00
parent eff8ef2f6e
commit a6059ab533

View file

@ -89,10 +89,10 @@ lazy_static! {
impl Display for XcrabError { impl Display for XcrabError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self { match self {
Self::Bread(be) => Display::fmt(&be, f)?, Self::Bread(be) => Display::fmt(be, f)?,
Self::Io(ie) => Display::fmt(&ie, f)?, Self::Io(ie) => Display::fmt(ie, f)?,
Self::Toml(te) => Display::fmt(&te, f)?, Self::Toml(te) => Display::fmt(te, f)?,
Self::Var(ve) => Display::fmt(&ve, f)?, Self::Var(ve) => Display::fmt(ve, f)?,
Self::ClientDoesntExist => Display::fmt("client didn't exist", f)?, Self::ClientDoesntExist => Display::fmt("client didn't exist", f)?,
Self::Custom(fe) => Display::fmt(fe, f)?, Self::Custom(fe) => Display::fmt(fe, f)?,
}; };
@ -219,6 +219,8 @@ async fn main() -> Result<()> {
} }
} }
#[allow(clippy::too_many_lines)]
async fn process_event<Dpy: AsyncDisplay + ?Sized>( async fn process_event<Dpy: AsyncDisplay + ?Sized>(
ev: Event, ev: Event,
manager: &mut XcrabWindowManager, manager: &mut XcrabWindowManager,