Appease clippy

This commit is contained in:
Nathan Whitaker 2022-08-22 20:19:12 -07:00
parent 550034acdd
commit ca9b0fd836
2 changed files with 2 additions and 2 deletions

View File

@ -699,7 +699,7 @@ impl ErasedErrorImpl {
.deref_mut()
}
pub(crate) unsafe fn chain<'a>(this: Ref<'a, Self>) -> Chain<'a> {
pub(crate) unsafe fn chain(this: Ref<'_, Self>) -> Chain<'_> {
Chain::new(Self::error(this))
}
}

View File

@ -73,7 +73,7 @@ fn context_info<'a>(
}
if offset >= (span.offset() + span.len()).saturating_sub(1) {
let starting_offset = before_lines_starts.get(0).copied().unwrap_or_else(|| {
let starting_offset = before_lines_starts.first().copied().unwrap_or_else(|| {
if context_lines_before == 0 {
span.offset()
} else {