Add #[inline(always)]
to into_query_param
This commit is contained in:
parent
f0c77337e1
commit
04c91a0bba
1 changed files with 2 additions and 0 deletions
|
@ -202,12 +202,14 @@ mod sealed {
|
|||
}
|
||||
|
||||
impl<P> IntoQueryParam<P> for P {
|
||||
#[inline(always)]
|
||||
fn into_query_param(self) -> P {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoQueryParam<DefId> for LocalDefId {
|
||||
#[inline(always)]
|
||||
fn into_query_param(self) -> DefId {
|
||||
self.to_def_id()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue