From 68339e234ccd03f0a3572869468d28e1a5cb7e2d Mon Sep 17 00:00:00 2001 From: Viet Dinh <54ckb0y789@gmail.com> Date: Thu, 24 Aug 2023 00:52:00 -0400 Subject: [PATCH] chore: clean up debug prints --- src/python.rs | 2 +- src/record.rs | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/python.rs b/src/python.rs index c4c3338..7097efa 100644 --- a/src/python.rs +++ b/src/python.rs @@ -98,7 +98,7 @@ impl Backend { let relative_offset = range.start; let needle = Cow::from(slice.byte_slice(1..offset - relative_offset)); let range = range.contract(1).map_unit(|unit| CharOffset(rope.byte_to_char(unit))); - self.complete_model(dbg!(&needle), range, rope.clone(), &mut items)?; + self.complete_model(&needle, range, rope.clone(), &mut items)?; return Ok(Some(CompletionResponse::List(CompletionList { is_incomplete: items.len() >= Self::LIMIT, items, diff --git a/src/record.rs b/src/record.rs index 9ec35a5..3bb683a 100644 --- a/src/record.rs +++ b/src/record.rs @@ -37,7 +37,6 @@ impl Record { reader: &mut Tokenizer, rope: Rope, ) -> miette::Result> { - eprintln!("Record::from_reader {uri}"); let mut id = None; let mut model = None; let mut inherit_id = None; @@ -58,10 +57,9 @@ impl Record { _ => {} }, Some(Ok(Token::ElementStart { local, .. })) => { - in_record = dbg!(local.as_str()) == "record"; + in_record = local.as_str() == "record"; if in_record { stack += 1; - eprintln!("> record({stack})"); } if local.as_str() == "field" { let mut is_inherit_id = false; @@ -100,7 +98,6 @@ impl Record { .. })) if local.as_str() == "record" => { stack -= 1; - eprintln!("< record({stack})"); if stack <= 0 { end = Some(span.end()); break; @@ -111,7 +108,6 @@ impl Record { span, .. })) if in_record => { - eprintln!("< record({stack})"); stack -= 1; if stack <= 0 { end = Some(span.end());