Adopt pinned public core snapshot and prepare Sized 2.0.0
This commit is contained in:
+3
-18
@@ -8,11 +8,11 @@ use comfy_table::{Attribute, Cell, CellAlignment, Color, ContentArrangement, Tab
|
||||
use csv::WriterBuilder;
|
||||
use std::cmp::Ordering;
|
||||
use std::io::Write;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
|
||||
pub mod scan;
|
||||
pub use scan::{
|
||||
pub use scanner_core::{build_tree, scan};
|
||||
pub use scanner_core::{
|
||||
scan_tree, EntryType, FileIdentity, Node, ScanControl, ScanError, ScanIssue, ScanOptions,
|
||||
ScanReport,
|
||||
};
|
||||
@@ -238,21 +238,6 @@ pub fn run(args: Args, mut writer: &mut dyn Write) -> bool {
|
||||
root_node.complete
|
||||
}
|
||||
|
||||
pub fn build_tree(path: &Path, ignore: bool, compare: bool) -> Node {
|
||||
// Compatibility helper; callers needing diagnostics should use scan_tree.
|
||||
scan_tree(
|
||||
path,
|
||||
&ScanOptions {
|
||||
respect_ignore: ignore,
|
||||
compare_ignore: compare,
|
||||
..ScanOptions::default()
|
||||
},
|
||||
&ScanControl::default(),
|
||||
)
|
||||
.map(|report| report.root)
|
||||
.unwrap_or_else(|_| Node::unavailable(path))
|
||||
}
|
||||
|
||||
fn process_node_recursive(
|
||||
writer: &mut dyn Write,
|
||||
node: &Node,
|
||||
|
||||
Reference in New Issue
Block a user