diff --git a/src/upgrade.rs b/src/upgrade.rs index 9d23a29081..f3a98b1763 100644 --- a/src/upgrade.rs +++ b/src/upgrade.rs @@ -150,7 +150,7 @@ impl Upgraded { /// `Upgraded` back. pub fn downcast(self) -> Result, Self> { let (io, buf) = self.io.into_inner(); - match io.__hyper_downcast() { + match io.__hyper_downcast::() { Ok(t) => Ok(Parts { io: *t, read_buf: buf,