chore: Fix linter warnings

This commit is contained in:
oSumAtrIX 2024-01-22 00:51:44 +01:00
parent bd43573752
commit 256666d43f
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ macro_rules! assert_correct_domain {
($url:expr, $expected:expr) => {{
if let Some(domain) = $url.domain() {
if domain != $expected {
return Err(ParserError::WrongParserError(
return Err(ParserError::WrongParser(
$expected.to_string(),
domain.to_string(),
));

View File

@ -151,7 +151,7 @@ impl CodeUrlParser for GitHubCodeUrl {
#[derive(Debug, Clone)]
pub enum ParserError {
Error(String),
WrongParserError(String, String),
WrongParser(String, String),
ConversionError(String),
InvalidFragment(String),
FailedToGetCode(String),
@ -165,7 +165,7 @@ impl fmt::Display for ParserError {
ParserError::Error(e) => {
write!(f, "Error: {e}")
},
ParserError::WrongParserError(expected, got) => {
ParserError::WrongParser(expected, got) => {
write!(f, "Expected parser {expected}, got {got}")
},
ParserError::ConversionError(conversion_error) => {