Skip to content

Commit 686fd7b

Browse files
author
mendelsshop
committed
cargo formatted: started working on UMPL support
1 parent dbfe93c commit 686fd7b

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

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

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ use crate::impl_function_trait;
77
use super::FunctionTrait;
88
#[derive(Debug, Clone, PartialEq, Eq)]
99
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,
1313
}
1414

1515
impl fmt::Display for UMPLFunction {
@@ -43,20 +43,15 @@ pub(crate) fn find_function_in_file(
4343
let tokens = lexed.scan_tokens();
4444
let mut parsed = umpl::parser::Parser::new(tokens);
4545
let ast = parsed.parse();
46-
for node in ast {
47-
48-
}
46+
for node in ast {}
4947
Err("")?
5048
}
5149

5250
#[derive(Debug, Clone, PartialEq, Eq)]
53-
pub enum UMPLFilter {
54-
55-
56-
}
51+
pub enum UMPLFilter {}
5752

5853
impl UMPLFilter {
5954
pub fn matches(&self, function: &UMPLFunction) -> bool {
6055
false
6156
}
62-
}
57+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ fn traverse_tree(
381381
continue;
382382
}
383383
}
384-
Language::UMPL=> {
384+
Language::UMPL => {
385385
if !ends_with_cmp_no_case(&file, "ump") {
386386
continue;
387387
}

0 commit comments

Comments
 (0)