Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timKraeuter committed Apr 7, 2024
1 parent 2e76b19 commit b445e36
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/webserver.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust compile, lint & test Webserver
name: Rust compile, lint & test webserver

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion core/src/bpmn/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn read_bpmn_from_file(file_path: &str) -> Result<Collaboration, Unsupported
pub fn read_bpmn_from_string(
contents: &str,
) -> Result<Collaboration, UnsupportedBpmnElementsError> {
let mut reader = Reader::from_str(&contents);
let mut reader = Reader::from_str(contents);
reader.trim_text(true);

let mut collaboration = Collaboration {
Expand Down
4 changes: 1 addition & 3 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ pub fn run(collaboration: &Collaboration, properties: Vec<Property>) -> ModelChe
collaboration.explore_state_space(properties)
}

pub fn read_bpmn_from_file(
file_path: &String,
) -> Result<Collaboration, UnsupportedBpmnElementsError> {
pub fn read_bpmn_from_file(file_path: &str) -> Result<Collaboration, UnsupportedBpmnElementsError> {
reader::read_bpmn_from_file(file_path)
}

Expand Down
2 changes: 1 addition & 1 deletion webserver/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async fn check_bpmn<'a>(
let properties = payload
.properties_to_be_checked
.iter()
.map(|dto| PropertyDTO::map_from_dto(dto))
.map(PropertyDTO::map_from_dto)
.collect();
let model_checking_result = run(&collaboration, properties);
tracing::info!("{:?}", "Model checking successful");
Expand Down

0 comments on commit b445e36

Please sign in to comment.