making it look better

This commit is contained in:
りき萌 2023-08-18 17:04:12 +02:00
parent ad84a79335
commit 30255be018
22 changed files with 2567 additions and 72 deletions

View file

@ -5,4 +5,3 @@ edition = "2021"
[dependencies]
thiserror = "1.0.47"
log = { workspace = true }

View file

@ -25,6 +25,7 @@ impl Roots {
#[derive(Debug, Clone)]
pub struct Branch {
pub indent_level: usize,
pub attributes: Range<usize>,
pub kind: BranchKind,
pub kind_span: Range<usize>,
@ -35,6 +36,7 @@ pub struct Branch {
impl From<BranchEvent> for Branch {
fn from(branch: BranchEvent) -> Self {
Self {
indent_level: branch.indent_level,
attributes: branch.attributes,
kind: branch.kind,
kind_span: branch.kind_span,