File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
git-function-history-lib/src Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ use crate::impl_function_trait;
7
7
use super :: FunctionTrait ;
8
8
#[ derive( Debug , Clone , PartialEq , Eq ) ]
9
9
pub struct UMPLFunction {
10
- pub ( crate ) lines : ( usize , usize ) ,
11
- pub ( crate ) name : String ,
12
- pub ( crate ) body : String ,
10
+ pub ( crate ) lines : ( usize , usize ) ,
11
+ pub ( crate ) name : String ,
12
+ pub ( crate ) body : String ,
13
13
}
14
14
15
15
impl fmt:: Display for UMPLFunction {
@@ -43,20 +43,15 @@ pub(crate) fn find_function_in_file(
43
43
let tokens = lexed. scan_tokens ( ) ;
44
44
let mut parsed = umpl:: parser:: Parser :: new ( tokens) ;
45
45
let ast = parsed. parse ( ) ;
46
- for node in ast {
47
-
48
- }
46
+ for node in ast { }
49
47
Err ( "" ) ?
50
48
}
51
49
52
50
#[ derive( Debug , Clone , PartialEq , Eq ) ]
53
- pub enum UMPLFilter {
54
-
55
-
56
- }
51
+ pub enum UMPLFilter { }
57
52
58
53
impl UMPLFilter {
59
54
pub fn matches ( & self , function : & UMPLFunction ) -> bool {
60
55
false
61
56
}
62
- }
57
+ }
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ fn traverse_tree(
381
381
continue ;
382
382
}
383
383
}
384
- Language :: UMPL => {
384
+ Language :: UMPL => {
385
385
if !ends_with_cmp_no_case ( & file, "ump" ) {
386
386
continue ;
387
387
}
You can’t perform that action at this time.
0 commit comments