Skip to content
Discussion options

You must be logged in to vote

For this case, there is the Mercy Mode for ÆC-0003, #[aeruginous::mercy::0003].

Please consider the following snippet from the Aeruginous code base as an example:

#![doc(
    html_logo_url = "https://github.com/kevinmatthes/aeruginous-rs/raw/main/aeruginous.svg"
)]

This attribute in src/lib.rs controls which resource shall be bound as documentation logo. As the URL cannot be shortened, the line is longer than 80 characters and would thus violate against ÆC-0003. Furthermore, even the introduction of a line break would not solve the problem as this would not meet the formatting rules of rustfmt anymore. The solution is to add #[aeruginous::mercy::0003] as a comment to the overlong line to …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kevinmatthes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
1 participant