mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
ra_hir_ty: fix formatting
This commit is contained in:
parent
5e827bd948
commit
a8e5da8a70
1 changed files with 8 additions and 8 deletions
|
@ -95,14 +95,14 @@ impl Ty {
|
||||||
// Types like slice can have inherent impls in several crates, (core and alloc).
|
// Types like slice can have inherent impls in several crates, (core and alloc).
|
||||||
// The corresponding impls are marked with lang items, so we can use them to find the required crates.
|
// The corresponding impls are marked with lang items, so we can use them to find the required crates.
|
||||||
macro_rules! lang_item_crate {
|
macro_rules! lang_item_crate {
|
||||||
($($name:expr),+ $(,)?) => {{
|
($($name:expr),+ $(,)?) => {{
|
||||||
let mut v = ArrayVec::<[LangItemTarget; 2]>::new();
|
let mut v = ArrayVec::<[LangItemTarget; 2]>::new();
|
||||||
$(
|
$(
|
||||||
v.extend(db.lang_item(cur_crate, $name.into()));
|
v.extend(db.lang_item(cur_crate, $name.into()));
|
||||||
)+
|
)+
|
||||||
v
|
v
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
let lang_item_targets = match self {
|
let lang_item_targets = match self {
|
||||||
Ty::Apply(a_ty) => match a_ty.ctor {
|
Ty::Apply(a_ty) => match a_ty.ctor {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue