all: address clippy lints
This commit is contained in:
parent
558fe3d3ce
commit
e2f31646f2
19 changed files with 25 additions and 26 deletions
|
|
@ -314,7 +314,7 @@ impl ActionParser<'_> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> Parser for ActionParser<'a> {
|
||||
impl Parser for ActionParser<'_> {
|
||||
type Value = Action;
|
||||
type Error = ActionParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::String, DataType::Array, DataType::Table];
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ pub enum ConnectorParserError {
|
|||
|
||||
pub struct ConnectorParser<'a>(pub &'a Context<'a>);
|
||||
|
||||
impl<'a> Parser for ConnectorParser<'a> {
|
||||
impl Parser for ConnectorParser<'_> {
|
||||
type Value = ConfigConnector;
|
||||
type Error = ConnectorParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table];
|
||||
|
|
@ -49,7 +49,7 @@ impl<'a> Parser for ConnectorParser<'a> {
|
|||
|
||||
pub struct ConnectorsParser<'a>(pub &'a Context<'a>);
|
||||
|
||||
impl<'a> Parser for ConnectorsParser<'a> {
|
||||
impl Parser for ConnectorsParser<'_> {
|
||||
type Value = Vec<ConfigConnector>;
|
||||
type Error = ConnectorParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table, DataType::Array];
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ pub enum ConnectorMatchParserError {
|
|||
|
||||
pub struct ConnectorMatchParser<'a>(pub &'a Context<'a>);
|
||||
|
||||
impl<'a> Parser for ConnectorMatchParser<'a> {
|
||||
impl Parser for ConnectorMatchParser<'_> {
|
||||
type Value = ConnectorMatch;
|
||||
type Error = ConnectorMatchParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table, DataType::Array];
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ pub struct DrmDeviceParser<'a> {
|
|||
pub name_ok: bool,
|
||||
}
|
||||
|
||||
impl<'a> Parser for DrmDeviceParser<'a> {
|
||||
impl Parser for DrmDeviceParser<'_> {
|
||||
type Value = ConfigDrmDevice;
|
||||
type Error = DrmDeviceParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table];
|
||||
|
|
@ -89,7 +89,7 @@ impl<'a> Parser for DrmDeviceParser<'a> {
|
|||
|
||||
pub struct DrmDevicesParser<'a>(pub &'a Context<'a>);
|
||||
|
||||
impl<'a> Parser for DrmDevicesParser<'a> {
|
||||
impl Parser for DrmDevicesParser<'_> {
|
||||
type Value = Vec<ConfigDrmDevice>;
|
||||
type Error = DrmDeviceParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table, DataType::Array];
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ pub struct InputParser<'a> {
|
|||
pub is_inputs_array: bool,
|
||||
}
|
||||
|
||||
impl<'a> Parser for InputParser<'a> {
|
||||
impl Parser for InputParser<'_> {
|
||||
type Value = Input;
|
||||
type Error = InputParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table];
|
||||
|
|
@ -254,7 +254,7 @@ impl<'a> Parser for InputParser<'a> {
|
|||
|
||||
pub struct InputsParser<'a>(pub &'a Context<'a>);
|
||||
|
||||
impl<'a> Parser for InputsParser<'a> {
|
||||
impl Parser for InputsParser<'_> {
|
||||
type Value = Vec<Input>;
|
||||
type Error = InputParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table, DataType::Array];
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ pub enum InputMatchParserError {
|
|||
|
||||
pub struct InputMatchParser<'a>(pub &'a Context<'a>);
|
||||
|
||||
impl<'a> Parser for InputMatchParser<'a> {
|
||||
impl Parser for InputMatchParser<'_> {
|
||||
type Value = InputMatch;
|
||||
type Error = InputMatchParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table, DataType::Array];
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ pub enum ModeParserError {
|
|||
|
||||
pub struct ModeParser<'a>(pub &'a Context<'a>);
|
||||
|
||||
impl<'a> Parser for ModeParser<'a> {
|
||||
impl Parser for ModeParser<'_> {
|
||||
type Value = Mode;
|
||||
type Error = ModeParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table];
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ pub struct OutputParser<'a> {
|
|||
pub name_ok: bool,
|
||||
}
|
||||
|
||||
impl<'a> Parser for OutputParser<'a> {
|
||||
impl Parser for OutputParser<'_> {
|
||||
type Value = Output;
|
||||
type Error = OutputParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table];
|
||||
|
|
@ -150,7 +150,7 @@ impl<'a> Parser for OutputParser<'a> {
|
|||
|
||||
pub struct OutputsParser<'a>(pub &'a Context<'a>);
|
||||
|
||||
impl<'a> Parser for OutputsParser<'a> {
|
||||
impl Parser for OutputsParser<'_> {
|
||||
type Value = Vec<Output>;
|
||||
type Error = OutputParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table, DataType::Array];
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ pub enum OutputMatchParserError {
|
|||
|
||||
pub struct OutputMatchParser<'a>(pub &'a Context<'a>);
|
||||
|
||||
impl<'a> Parser for OutputMatchParser<'a> {
|
||||
impl Parser for OutputMatchParser<'_> {
|
||||
type Value = OutputMatch;
|
||||
type Error = OutputMatchParserError;
|
||||
const EXPECTED: &'static [DataType] = &[DataType::Table, DataType::Table];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue