Skip to content

Commit b23e322

Browse files
conradludgatearpad-m
authored andcommitted
fix newly introduced clippy lints
1 parent 3587476 commit b23e322

File tree

15 files changed

+169
-52
lines changed

15 files changed

+169
-52
lines changed

Cargo.lock

Lines changed: 132 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

postgres-protocol/src/message/backend.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ pub struct ColumnFormats<'a> {
591591
remaining: u16,
592592
}
593593

594-
impl<'a> FallibleIterator for ColumnFormats<'a> {
594+
impl FallibleIterator for ColumnFormats<'_> {
595595
type Item = u16;
596596
type Error = io::Error;
597597

@@ -695,7 +695,7 @@ pub struct DataRowRanges<'a> {
695695
remaining: u16,
696696
}
697697

698-
impl<'a> FallibleIterator for DataRowRanges<'a> {
698+
impl FallibleIterator for DataRowRanges<'_> {
699699
type Item = Option<Range<usize>>;
700700
type Error = io::Error;
701701

@@ -783,7 +783,7 @@ pub struct ErrorField<'a> {
783783
value: &'a [u8],
784784
}
785785

786-
impl<'a> ErrorField<'a> {
786+
impl ErrorField<'_> {
787787
#[inline]
788788
pub fn type_(&self) -> u8 {
789789
self.type_
@@ -855,7 +855,7 @@ pub struct Parameters<'a> {
855855
remaining: u16,
856856
}
857857

858-
impl<'a> FallibleIterator for Parameters<'a> {
858+
impl FallibleIterator for Parameters<'_> {
859859
type Item = Oid;
860860
type Error = io::Error;
861861

postgres-protocol/src/types/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ impl<'a> Array<'a> {
582582
/// An iterator over the dimensions of an array.
583583
pub struct ArrayDimensions<'a>(&'a [u8]);
584584

585-
impl<'a> FallibleIterator for ArrayDimensions<'a> {
585+
impl FallibleIterator for ArrayDimensions<'_> {
586586
type Item = ArrayDimension;
587587
type Error = StdBox<dyn Error + Sync + Send>;
588588

@@ -950,7 +950,7 @@ pub struct PathPoints<'a> {
950950
buf: &'a [u8],
951951
}
952952

953-
impl<'a> FallibleIterator for PathPoints<'a> {
953+
impl FallibleIterator for PathPoints<'_> {
954954
type Item = Point;
955955
type Error = StdBox<dyn Error + Sync + Send>;
956956

postgres-types/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ keywords = ["database", "postgres", "postgresql", "sql"]
1111
categories = ["database"]
1212

1313
[features]
14+
default = ["with-chrono-0_4"]
1415
derive = ["postgres-derive"]
1516
array-impls = ["array-init"]
1617
js = ["postgres-protocol/js"]

0 commit comments

Comments
 (0)