mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
fix build warning : explicit cast
This commit is contained in:
1 parent
e7b9446b5a
commit
8893bd1613
1 file changed
+8
-2
@@ -47,14 +47,20 @@ impl WebRequest for OidcRequest {
|
||||
fn query(&mut self) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error> {
|
||||
self.query
|
||||
.as_ref()
|
||||
.map(|q| Cow::Borrowed(q as &dyn QueryParameter))
|
||||
.map(|q| {
|
||||
let q: &dyn QueryParameter = q;
|
||||
Cow::Borrowed(q)
|
||||
})
|
||||
.ok_or(OidcError::Query)
|
||||
}
|
||||
|
||||
fn urlbody(&mut self) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error> {
|
||||
self.body
|
||||
.as_ref()
|
||||
.map(|b| Cow::Borrowed(b as &dyn QueryParameter))
|
||||
.map(|q| {
|
||||
let q: &dyn QueryParameter = q;
|
||||
Cow::Borrowed(q)
|
||||
})
|
||||
.ok_or(OidcError::Body)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user