Run cargo fix

This commit is contained in:
Jeff 2024-02-16 20:30:58 -05:00
parent a46d5bb4ea
commit d05b5a8628
3 changed files with 46 additions and 46 deletions

View File

@ -77,7 +77,7 @@ impl RuntimeError {
(200, 0, 0),
)]
}
RuntimeError::AssertFailed { assertion } => todo!(),
RuntimeError::AssertFailed { assertion: _ } => todo!(),
RuntimeError::ConversionImpossible { from, to, position } => vec![(
position.start_byte..position.end_byte,
format!("Cannot convert from {from} to {to}."),
@ -93,9 +93,9 @@ impl RuntimeError {
RuntimeError::ParseFloat(_) => todo!(),
RuntimeError::Utf8(_) => todo!(),
RuntimeError::ExpectedBuiltInFunctionArgumentAmount {
function_name,
expected,
actual,
function_name: _,
expected: _,
actual: _,
} => todo!(),
RuntimeError::ValidationFailure(_) => todo!(),
};

View File

@ -42,9 +42,9 @@ impl SyntaxError {
}
SyntaxError::RwLock(_) => todo!(),
SyntaxError::UnexpectedSyntaxNode {
expected,
actual,
position,
expected: _,
actual: _,
position: _,
} => todo!(),
};

View File

@ -154,8 +154,8 @@ impl ValidationError {
pub fn create_report(&self, source: &str) -> String {
let messages = match self {
ValidationError::CannotAdd {
left,
right,
left: _,
right: _,
position,
} => vec![
((
@ -165,56 +165,56 @@ impl ValidationError {
)),
],
ValidationError::CannotSubtract {
left,
right,
position,
left: _,
right: _,
position: _,
} => todo!(),
ValidationError::CannotMultiply {
left,
right,
position,
left: _,
right: _,
position: _,
} => todo!(),
ValidationError::CannotDivide {
left,
right,
position,
left: _,
right: _,
position: _,
} => todo!(),
ValidationError::ConversionImpossible {
initial_type,
target_type,
initial_type: _,
target_type: _,
} => todo!(),
ValidationError::ExpectedString { actual } => todo!(),
ValidationError::ExpectedInteger { actual } => todo!(),
ValidationError::ExpectedFloat { actual } => todo!(),
ValidationError::ExpectedNumber { actual } => todo!(),
ValidationError::ExpectedNumberOrString { actual } => todo!(),
ValidationError::ExpectedBoolean { actual } => todo!(),
ValidationError::ExpectedList { actual } => todo!(),
ValidationError::ExpectedString { actual: _ } => todo!(),
ValidationError::ExpectedInteger { actual: _ } => todo!(),
ValidationError::ExpectedFloat { actual: _ } => todo!(),
ValidationError::ExpectedNumber { actual: _ } => todo!(),
ValidationError::ExpectedNumberOrString { actual: _ } => todo!(),
ValidationError::ExpectedBoolean { actual: _ } => todo!(),
ValidationError::ExpectedList { actual: _ } => todo!(),
ValidationError::ExpectedMinLengthList {
minimum_len,
actual_len,
minimum_len: _,
actual_len: _,
} => todo!(),
ValidationError::ExpectedFixedLenList {
expected_len,
actual,
expected_len: _,
actual: _,
} => todo!(),
ValidationError::ExpectedMap { actual } => todo!(),
ValidationError::ExpectedFunction { actual } => todo!(),
ValidationError::ExpectedCollection { actual } => todo!(),
ValidationError::ExpectedMap { actual: _ } => todo!(),
ValidationError::ExpectedFunction { actual: _ } => todo!(),
ValidationError::ExpectedCollection { actual: _ } => todo!(),
ValidationError::ExpectedBuiltInFunctionArgumentAmount {
function_name,
expected,
actual,
function_name: _,
expected: _,
actual: _,
} => todo!(),
ValidationError::ExpectedFunctionArgumentAmount {
expected,
actual,
position,
expected: _,
actual: _,
position: _,
} => todo!(),
ValidationError::ExpectedFunctionArgumentMinimum {
minumum_expected,
actual,
position,
minumum_expected: _,
actual: _,
position: _,
} => todo!(),
ValidationError::RwLock(_) => todo!(),
ValidationError::TypeCheck {
@ -226,11 +226,11 @@ impl ValidationError {
format!("Type {actual} is incompatible with {expected}."),
(200, 200, 200),
)],
ValidationError::TypeCheckExpectedFunction { actual, position } => todo!(),
ValidationError::TypeCheckExpectedFunction { actual: _, position: _ } => todo!(),
ValidationError::VariableIdentifierNotFound(_) => todo!(),
ValidationError::TypeDefinitionNotFound(_) => todo!(),
ValidationError::ExpectedEnumDefintion { actual } => todo!(),
ValidationError::ExpectedStructDefintion { actual } => todo!(),
ValidationError::ExpectedEnumDefintion { actual: _ } => todo!(),
ValidationError::ExpectedStructDefintion { actual: _ } => todo!(),
};
Report::new_byte_spanned(source, messages).display_str()