Skip to content

Commit

Permalink
chore: clean up debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Desdaemon committed Aug 24, 2023
1 parent 5bd3553 commit 68339e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 1 addition & 5 deletions src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ impl Record {
reader: &mut Tokenizer,
rope: Rope,
) -> miette::Result<Option<Self>> {
eprintln!("Record::from_reader {uri}");
let mut id = None;
let mut model = None;
let mut inherit_id = None;
Expand All @@ -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;
Expand Down Expand Up @@ -100,7 +98,6 @@ impl Record {
..
})) if local.as_str() == "record" => {
stack -= 1;
eprintln!("< record({stack})");
if stack <= 0 {
end = Some(span.end());
break;
Expand All @@ -111,7 +108,6 @@ impl Record {
span,
..
})) if in_record => {
eprintln!("< record({stack})");
stack -= 1;
if stack <= 0 {
end = Some(span.end());
Expand Down

0 comments on commit 68339e2

Please sign in to comment.