Skip to content

Commit

Permalink
clippy: rm unnecessary lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Oct 21, 2024
1 parent d9e9c0b commit 2654da7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ pub struct TerminalWriter {
view: Arc<nutmeg::View<LabModel>>,
}

impl<'w> MakeWriter<'w> for TerminalWriter {
impl MakeWriter<'_> for TerminalWriter {
type Writer = Self;

fn make_writer(&self) -> Self::Writer {
Expand All @@ -320,7 +320,7 @@ impl std::io::Write for TerminalWriter {
/// Write trace output to the debug log file if it's open.
pub struct DebugLogWriter(Arc<Mutex<Option<File>>>);

impl<'w> MakeWriter<'w> for DebugLogWriter {
impl MakeWriter<'_> for DebugLogWriter {
type Writer = Self;

fn make_writer(&self) -> Self::Writer {
Expand Down
2 changes: 1 addition & 1 deletion src/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ struct DiscoveryVisitor<'o> {
error_exprs: &'o [Expr],
}

impl<'o> DiscoveryVisitor<'o> {
impl DiscoveryVisitor<'_> {
fn enter_function(
&mut self,
function_name: &Ident,
Expand Down

0 comments on commit 2654da7

Please sign in to comment.