[][src]Macro activitystreams::uri

macro_rules! uri {
    ( $x:expr ) => { ... };
}

A macro to shorten the string.parse::<Url>()? calls inevitably made in downstream code

use activitystreams::uri;

fn fallible() -> Result<(), anyhow::Error> {
    let my_uri = uri!("https://example.com");
    Ok(())
}