enforce lint groups

added remaining lint enforcements
This commit is contained in:
MaxOhn
2021-11-06 22:30:10 +01:00
parent 65e4ba166a
commit 21dcdeb942
16 changed files with 44 additions and 39 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ pub enum ParseError {
}
impl fmt::Display for ParseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::IOError(_) => f.write_str("IO error"),
Self::IncorrectFileHeader => {
+3 -3
View File
@@ -98,13 +98,13 @@ impl ops::AddAssign for Pos2 {
}
impl fmt::Display for Pos2 {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{:?}", self)
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Debug::fmt(self, f)
}
}
impl fmt::Debug for Pos2 {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "({}, {})", self.x, self.y)
}
}