File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/tools/clippy/clippy_utils/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2064,9 +2064,9 @@ pub fn fn_def_id(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option<DefId> {
20642064 }
20652065}
20662066
2067- /// Returns Option<String> where String is a textual representation of the type encapsulated in the
2068- /// slice iff the given expression is a slice of primitives (as defined in the
2069- /// `is_recursively_primitive_type` function) and None otherwise.
2067+ /// Returns ` Option<String>` where String is a textual representation of the type encapsulated in
2068+ /// the slice iff the given expression is a slice of primitives (as defined in the
2069+ /// `is_recursively_primitive_type` function) and ` None` otherwise.
20702070pub fn is_slice_of_primitives ( cx : & LateContext < ' _ > , expr : & Expr < ' _ > ) -> Option < String > {
20712071 let expr_type = cx. typeck_results ( ) . expr_ty_adjusted ( expr) ;
20722072 let expr_kind = expr_type. kind ( ) ;
You can’t perform that action at this time.
0 commit comments