mirror of https://github.com/zkat/miette.git
Appease clippy
This commit is contained in:
parent
550034acdd
commit
ca9b0fd836
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue