Change summary
crates/markdown/src/markdown.rs | 4 ++--
crates/multi_buffer/src/multi_buffer.rs | 5 +----
2 files changed, 3 insertions(+), 6 deletions(-)
Detailed changes
@@ -736,7 +736,7 @@ impl Element for MarkdownElement {
markdown_end,
);
}
- _ => log::error!("unsupported markdown tag {:?}", tag),
+ _ => log::debug!("unsupported markdown tag {:?}", tag),
}
}
MarkdownEvent::End(tag) => match tag {
@@ -853,7 +853,7 @@ impl Element for MarkdownElement {
MarkdownTagEnd::TableCell => {
builder.pop_div();
}
- _ => log::error!("unsupported markdown tag end: {:?}", tag),
+ _ => log::debug!("unsupported markdown tag end: {:?}", tag),
},
MarkdownEvent::Text(parsed) => {
builder.push_text(parsed, range.start);
@@ -3523,10 +3523,7 @@ impl MultiBufferSnapshot {
) -> impl Iterator<Item = MultiBufferDiffHunk> + '_ {
let query_range = range.start.to_point(self)..range.end.to_point(self);
self.lift_buffer_metadata(query_range.clone(), move |buffer, buffer_range| {
- let Some(diff) = self.diffs.get(&buffer.remote_id()) else {
- log::debug!("no diff found for {:?}", buffer.remote_id());
- return None;
- };
+ let diff = self.diffs.get(&buffer.remote_id())?;
let buffer_start = buffer.anchor_before(buffer_range.start);
let buffer_end = buffer.anchor_after(buffer_range.end);
Some(