Move more files into diff/

pull/290/head
Wilfred Hughes 2022-05-25 09:31:03 +07:00
parent c5fe152f25
commit d4285bed7c
8 changed files with 9 additions and 9 deletions

@ -4,7 +4,7 @@
use std::{cmp::Reverse, env, rc::Rc};
use crate::{
changes::ChangeMap,
diff::changes::ChangeMap,
diff::graph::{neighbours, populate_change_map, Edge, Vertex},
parse::syntax::Syntax,
};
@ -169,7 +169,7 @@ pub fn mark_syntax<'a>(
mod tests {
use super::*;
use crate::{
changes::ChangeKind,
diff::changes::ChangeKind,
diff::graph::Edge::*,
positions::SingleLineSpan,
syntax::{init_all_info, AtomKind},

@ -10,7 +10,7 @@ use std::{
use strsim::normalized_levenshtein;
use crate::{
changes::{insert_deep_unchanged, ChangeKind, ChangeMap},
diff::changes::{insert_deep_unchanged, ChangeKind, ChangeMap},
parse::syntax::{AtomKind, Syntax, SyntaxId},
};
use Edge::*;

@ -3,3 +3,4 @@ mod graph;
pub mod myers_diff;
pub mod sliders;
pub mod unchanged;
pub mod changes;

@ -30,7 +30,7 @@
//! (B in this example).
use crate::{
changes::{insert_deep_novel, insert_deep_unchanged, ChangeKind::*, ChangeMap},
diff::changes::{insert_deep_novel, insert_deep_unchanged, ChangeKind::*, ChangeMap},
parse::guess_language,
positions::SingleLineSpan,
parse::syntax::Syntax,

@ -1,7 +1,7 @@
//! Find nodes that are obviously unchanged, so we can run the main
//! diff on smaller inputs.
use crate::changes::{insert_deep_unchanged, ChangeKind, ChangeMap};
use crate::diff::changes::{insert_deep_unchanged, ChangeKind, ChangeMap};
use crate::diff::myers_diff;
use crate::parse::syntax::Syntax;

@ -13,7 +13,6 @@
// the number of arguments and triggering this lint.
#![allow(clippy::too_many_arguments)]
mod changes;
mod constants;
mod diff;
mod display;
@ -32,7 +31,7 @@ extern crate log;
use crate::diff::{dijkstra, unchanged};
use crate::hunks::{matched_pos_to_hunks, merge_adjacent};
use crate::parse::syntax;
use changes::ChangeMap;
use diff::changes::ChangeMap;
use display::context::opposite_positions;
use files::{is_probably_binary, read_files_or_die, read_or_die, relative_paths_in_either};
use log::info;

@ -6,8 +6,8 @@ use std::{cell::Cell, collections::HashMap, env, fmt, hash::Hash, num::NonZeroU3
use typed_arena::Arena;
use crate::{
changes::ChangeKind,
changes::{ChangeKind::*, ChangeMap},
diff::changes::ChangeKind,
diff::changes::{ChangeKind::*, ChangeMap},
diff::myers_diff,
lines::{LineNumber, NewlinePositions},
positions::SingleLineSpan,