Closed Someone0nEarth closed 7 months ago
Looks good, thank you!
As for idiomatic rust, the name_and_url
method is a constructor and will usually be called just new
, but because it's internal it doesn't matter. 😄
Thanks for merging!
@Constructor: yeah.. I was between "new" and this name.. . I found it a little more bit readable.. but "new" would work good enough too.
Have fun, someone.earth
Improves the parsing of the name and URL for metadata key values like author and source.
See: https://github.com/cooklang/cooklang-rs/issues/11#issuecomment-2035737123
As already mentioned, first time rust coding for me.. so maybe my changes are not very rust-idiomatic.. feel free to change or ping me (always like to learn :).
Have fun, someone.earth