Skip to content

Commit 0b4cacf

Browse files
author
mendelsshop
committed
cargo formatted: removed -> from return type field in rust function, and genrics no longer include lifetimes
1 parent 1b9d503 commit 0b4cacf

File tree

1 file changed

+2
-2
lines changed
  • git-function-history-lib/src/languages

1 file changed

+2
-2
lines changed

git-function-history-lib/src/languages/rust.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{collections::HashMap, fmt};
22

33
use ra_ap_syntax::{
4-
ast::{self, HasDocComments, HasGenericParams, HasName, Fn},
4+
ast::{self, Fn, HasDocComments, HasGenericParams, HasName},
55
AstNode, SourceFile, SyntaxKind,
66
};
77

@@ -420,7 +420,7 @@ fn get_genrerics_and_lifetime<T: HasGenericParams>(block: &T) -> (Vec<String>, V
420420
|gt| {
421421
(
422422
gt.type_or_const_params()
423-
.map(|gt|match gt {
423+
.map(|gt| match gt {
424424
ast::TypeOrConstParam::Type(ty) => ty.to_string(),
425425
ast::TypeOrConstParam::Const(c) => c.to_string(),
426426
})

0 commit comments

Comments
 (0)