fn parse_magic_url(
    parsed: &ParsedJS,
    kind: MagicCommentKind,
) -> Result<Option<Url>, url::ParseError> {
    parsed.magic_comment(kind).map(Url::parse).transpose()
}
/// If there is a magic comment of the specified type, attempt to parse it as an URL.
If there is a magic comment of the specified type, attempt to parse it as an URL.
If there is a magic comment of the specified type attempt to parse it as an URL .
fn parse_magic_url(
    parsed: &ParsedJS,
    kind: MagicCommentKind,
) -> Result<Option<Url>, url::ParseError> {
    parsed.magic_comment(kind).map(Url::parse).transpose()
}
fn parse_magic_url ( parsed : & ParsedJS , kind : MagicCommentKind , ) -> Result < Option < Url > , url :: ParseError > { parsed . magic_comment ( kind ) . map ( Url :: parse ) . transpose ( ) }
If there is a magic comment of the specified type, attempt to parse it as an URL.
If there is a magic comment of the specified type attempt to parse it as an URL .
parsed
&ParsedJS
kind
MagicCommentKind
parsed
&ParsedJS
kind
MagicCommentKind