all: address clippy lints
This commit is contained in:
parent
558fe3d3ce
commit
e2f31646f2
19 changed files with 25 additions and 26 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue