Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
chore: Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jan 21, 2024
1 parent bd43573 commit 256666d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils/code_embed/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
));
Expand Down
4 changes: 2 additions & 2 deletions src/utils/code_embed/url_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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) => {
Expand Down

0 comments on commit 256666d

Please sign in to comment.