Skip to content

Commit

Permalink
style: Apply code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed Jul 27, 2024
1 parent 4547787 commit 07126d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions bin/src/control.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::{
error::Error,
fmt::{self, Display}, time::Instant,
fmt::{self, Display},
time::Instant,
};

use matching::MatchingEntry;
Expand Down Expand Up @@ -79,17 +80,26 @@ pub fn run_tool_on_merge_scenario(
let start = Instant::now();
log::info!("Started calculation of matchings between left and base");
let matchings_left_base = matching::calculate_matchings(&left_tree, &base_tree);
log::info!("Finished calculation of matchings between left and base in {:?}", start.elapsed());
log::info!(
"Finished calculation of matchings between left and base in {:?}",
start.elapsed()
);

let start = Instant::now();
log::info!("Started calculation of matchings between right and base");
let matchings_right_base = matching::calculate_matchings(&right_tree, &base_tree);
log::info!("Finished calculation of matchings between right and base in {:?}", start.elapsed());
log::info!(
"Finished calculation of matchings between right and base in {:?}",
start.elapsed()
);

let start = Instant::now();
log::info!("Started calculation of matchings between left and right");
let matchings_left_right = matching::calculate_matchings(&left_tree, &right_tree);
log::info!("Finished calculation of matchings between left and right in {:?}", start.elapsed());
log::info!(
"Finished calculation of matchings between left and right in {:?}",
start.elapsed()
);

let start = Instant::now();
log::info!("Starting merge of the trees");
Expand Down
2 changes: 1 addition & 1 deletion merge/src/merge_terminals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn merge_terminals<'a>(
right: &'a Terminal<'a>,
) -> Result<MergedCSTNode<'a>, MergeError> {
log::trace!("Calling merge terminal");

// Nodes of different kind, early return
if left.kind != right.kind {
return Err(MergeError::NodesWithDifferentKinds(
Expand Down

0 comments on commit 07126d5

Please sign in to comment.