Rollup merge of #94894 - camelid:into, r=nagisa
Remove needless use of `Into`
This commit is contained in:
commit
7d456f7bad
@ -327,7 +327,7 @@ fn merge_attrs(
|
|||||||
/// Inline an `impl`, inherent or of a trait. The `did` must be for an `impl`.
|
/// Inline an `impl`, inherent or of a trait. The `did` must be for an `impl`.
|
||||||
crate fn build_impl(
|
crate fn build_impl(
|
||||||
cx: &mut DocContext<'_>,
|
cx: &mut DocContext<'_>,
|
||||||
parent_module: impl Into<Option<DefId>>,
|
parent_module: Option<DefId>,
|
||||||
did: DefId,
|
did: DefId,
|
||||||
attrs: Option<Attrs<'_>>,
|
attrs: Option<Attrs<'_>>,
|
||||||
ret: &mut Vec<clean::Item>,
|
ret: &mut Vec<clean::Item>,
|
||||||
@ -478,7 +478,7 @@ crate fn build_impl(
|
|||||||
record_extern_trait(cx, did);
|
record_extern_trait(cx, did);
|
||||||
}
|
}
|
||||||
|
|
||||||
let (merged_attrs, cfg) = merge_attrs(cx, parent_module.into(), load_attrs(cx, did), attrs);
|
let (merged_attrs, cfg) = merge_attrs(cx, parent_module, load_attrs(cx, did), attrs);
|
||||||
trace!("merged_attrs={:?}", merged_attrs);
|
trace!("merged_attrs={:?}", merged_attrs);
|
||||||
|
|
||||||
trace!(
|
trace!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user