Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Farooq Karimi Zadeh <[email protected]>
  • Loading branch information
Simon-Laux and farooqkz authored May 29, 2024
1 parent 3d0b5de commit 938b3ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/parser/parse_from_text/desktop_subset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use super::Element;

// [labeled](https://link)
pub(crate) fn labeled_link(input: &str) -> IResult<&str, Element, CustomError<&str>> {
let (input, raw_label): (&str, &str) = delimited(tag("["), is_not("]"), tag("]"))(input)?;
let (input, raw_label) = delimited(tag("["), is_not("]"), tag("]"))(input)?;
if raw_label.is_empty() {
return Err(nom::Err::Error(CustomError::NoContent));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ use crate::parser::{
Element,
};

/// Parsers for label in labelled links and later also labled hashtags
/// Parsers for label in labelled links and later also labeled hashtags
/// parse elements inside of label in markdown set
pub(crate) fn parse_label_elements(input: &str) -> std::vec::Vec<Element> {
pub(crate) fn parse_label_elements(input: &str) -> Vec<Element> {
let mut result = Vec::new();
let mut remaining = input;
// println!("p-{}", input);
Expand Down

0 comments on commit 938b3ac

Please sign in to comment.