Add #[inline(always)] to into_query_param

This commit is contained in:
Dylan MacKenzie 2020-04-11 16:29:50 -07:00
parent f0c77337e1
commit 04c91a0bba

View File

@ -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()
}