Skip to content

Commit

Permalink
apply clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Nov 18, 2024
1 parent ed84091 commit 3f3cf59
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion flussab-aiger/src/aig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct Symbol<'a> {
pub name: Cow<'a, str>,
}

impl<'a> Symbol<'a> {
impl Symbol<'_> {
pub fn into_owned_name(self) -> Symbol<'static> {
Symbol {
target: self.target,
Expand Down
4 changes: 2 additions & 2 deletions flussab-aiger/src/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ pub struct ParseSymbols<'a, L> {
parser: Parser<'a, L>,
}

impl<'a, L> ParseSymbols<'a, L>
impl<L> ParseSymbols<'_, L>
where
L: Lit,
{
Expand Down Expand Up @@ -813,7 +813,7 @@ impl<'a, L> std::ops::Deref for Writer<'a, L> {
}
}

impl<'a, L> std::ops::DerefMut for Writer<'a, L> {
impl<L> std::ops::DerefMut for Writer<'_, L> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.writer
}
Expand Down
4 changes: 2 additions & 2 deletions flussab-aiger/src/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ pub struct ParseSymbols<'a, L> {
parser: Parser<'a, L>,
}

impl<'a, L> ParseSymbols<'a, L>
impl<L> ParseSymbols<'_, L>
where
L: Lit,
{
Expand Down Expand Up @@ -800,7 +800,7 @@ impl<'a, L> std::ops::Deref for Writer<'a, L> {
}
}

impl<'a, L> std::ops::DerefMut for Writer<'a, L> {
impl<L> std::ops::DerefMut for Writer<'_, L> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.writer
}
Expand Down
4 changes: 2 additions & 2 deletions flussab/src/deferred_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl<'a> DeferredWriter<'a> {
}
}

impl<'a> Write for DeferredWriter<'a> {
impl Write for DeferredWriter<'_> {
#[inline]
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
self.write_all_defer_err(buf);
Expand All @@ -177,7 +177,7 @@ impl<'a> Write for DeferredWriter<'a> {
}
}

impl<'a> Drop for DeferredWriter<'a> {
impl Drop for DeferredWriter<'_> {
fn drop(&mut self) {
if !self.panicked {
self.flush_defer_err();
Expand Down

0 comments on commit 3f3cf59

Please sign in to comment.