mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-26 20:40:49 +00:00
Merge branch 'clippy' into pyo3
This commit is contained in:
commit
b14c715067
@ -160,7 +160,7 @@ pub struct Frame {
|
||||
#[derive(Debug)]
|
||||
struct StyledFrame<'a>(&'a Frame, Theme);
|
||||
|
||||
impl<'a> fmt::Display for StyledFrame<'a> {
|
||||
impl fmt::Display for StyledFrame<'_> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let Self(frame, theme) = self;
|
||||
|
||||
|
@ -67,7 +67,7 @@ impl<'a, H: ?Sized, W> HeaderWriter<'a, H, W> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, H: ?Sized, W> fmt::Write for ReadyHeaderWriter<'a, '_, H, W>
|
||||
impl<H: ?Sized, W> fmt::Write for ReadyHeaderWriter<'_, '_, H, W>
|
||||
where
|
||||
H: Display,
|
||||
W: fmt::Write,
|
||||
|
@ -75,8 +75,8 @@ pub(crate) struct RefPtr<'a, T: ?Sized> {
|
||||
unsafe impl<'a, T: ?Sized> Send for RefPtr<'a, T> where &'a T: Send {}
|
||||
unsafe impl<'a, T: ?Sized> Sync for RefPtr<'a, T> where &'a T: Sync {}
|
||||
|
||||
impl<'a, T: ?Sized> Copy for RefPtr<'a, T> {}
|
||||
impl<'a, T: ?Sized> Clone for RefPtr<'a, T> {
|
||||
impl<T: ?Sized> Copy for RefPtr<'_, T> {}
|
||||
impl<T: ?Sized> Clone for RefPtr<'_, T> {
|
||||
fn clone(&self) -> Self {
|
||||
*self
|
||||
}
|
||||
@ -121,8 +121,8 @@ pub(crate) struct MutPtr<'a, T: ?Sized> {
|
||||
unsafe impl<'a, T: ?Sized> Send for MutPtr<'a, T> where &'a mut T: Send {}
|
||||
unsafe impl<'a, T: ?Sized> Sync for MutPtr<'a, T> where &'a mut T: Sync {}
|
||||
|
||||
impl<'a, T: ?Sized> Copy for MutPtr<'a, T> {}
|
||||
impl<'a, T: ?Sized> Clone for MutPtr<'a, T> {
|
||||
impl<T: ?Sized> Copy for MutPtr<'_, T> {}
|
||||
impl<T: ?Sized> Clone for MutPtr<'_, T> {
|
||||
fn clone(&self) -> Self {
|
||||
*self
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user