Accept an Option<&str> as a link name #14

Closed
Ghost wants to merge 1 commits from (deleted):link-name-str into main

1 Commits

Author SHA1 Message Date
Emii Tatsuo 23df792abf
Accept an Option<&str> as a link name
continuous-integration/drone/pr Build encountered an error Details
Many users may be adding links to their documents with &'static str's as the name, which means that they would manually have to convert to an Option<String>, leading to code that looks like `link("gemini://emii.gay", Some(String::from("My Website")))` instead of the simpler `link("gemini://emii.gay/", Some("My Website"))`.

We can change this method to accept the latter in addition to accepting `Option<String>`s, which might make users lives a little easier
2020-11-30 02:01:15 -05:00