Various cosmetic improvements.
This commit is contained in:
parent
016d92d6ed
commit
d43966a176
73 changed files with 510 additions and 470 deletions
|
@ -106,7 +106,7 @@ fn check_vec_macro<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, vec_args: &higher::VecA
|
|||
);
|
||||
}
|
||||
|
||||
/// Return the item type of the vector (ie. the `T` in `Vec<T>`).
|
||||
/// Returns the item type of the vector (i.e., the `T` in `Vec<T>`).
|
||||
fn vec_type(ty: Ty<'_>) -> Ty<'_> {
|
||||
if let ty::Adt(_, substs) = ty.sty {
|
||||
substs.type_at(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue