lint: remove redundant semicolons

Newer versions of Rust emit warnings for these
This commit is contained in:
Wez Furlong committed 2021-03-25 09:44:27 -07:00
1 parent dbd7fc28a5
commit 3bec6fb5c0
6 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -117,7 +117,7 @@ impl RgbColor {
} else {
((v + 0.055) / 1.055).powf(2.4)
}
};
}
(
to_linear(self.red),
to_linear(self.green),
+1 -1
View File
@@ -1846,7 +1846,7 @@ impl<'a> CSIParser<'a> {
($t:expr) => {
Ok(self.advance_by(1, params, $t))
};
};
}
match &params[0] {
CsiParam::Integer(i) => match FromPrimitive::from_i64(*i) {
+6 -6
View File
@@ -126,7 +126,7 @@ impl Display for Selection {
write!(f, $s)?;
}
};
};
}
item!(CLIPBOARD, "c");
item!(PRIMARY, "p");
@@ -280,7 +280,7 @@ impl OperatingSystemCommand {
Ok(OperatingSystemCommand::$variant(s))
}};
};
}
use self::OperatingSystemCommandCode::*;
match osc_code {
@@ -470,7 +470,7 @@ impl Display for OperatingSystemCommand {
}
}
}};
};
}
use self::OperatingSystemCommand::*;
match self {
@@ -663,7 +663,7 @@ impl FinalTermSemanticPrompt {
return Ok(FinalTermSemanticPrompt::$variant);
}
};
};
}
single!(FreshLine, "L");
single!(MarkEndOfPromptAndStartOfInputUntilNextMarker, "B");
@@ -1057,7 +1057,7 @@ impl ITermProprietary {
return Ok(ITermProprietary::$variant);
}
};
};
}
macro_rules! one_str {
($variant:ident, $text:expr) => {
@@ -1067,7 +1067,7 @@ impl ITermProprietary {
}
}
};
};
}
macro_rules! const_arg {
($variant:ident, $text:expr, $value:expr, $res:expr) => {
if osc.len() == 2 && keyword == $text {