User avatar
celeste_hearts_lesbianceleste_hearts_transceleste_hearts_demisexual flori_ava_star:~cursor_blinking @star@amazonawaws.com
8mo
If you write code, do you
/// "Valid not after" [`DateTime`]
#[must_use]
pub const fn to(&self) -> &DateTime<Utc> {
    &self.to
}


, or do you
#[must_use]
/// "Valid not after" [`DateTime`]
pub const fn to(&self) -> &DateTime<Utc> {
    &self.to
}


?
neobot
5
0
4
0

User avatar
Ellie is just 🪼 @ellis@transfem.social
8mo
@star i think i don't know enough about rustneocat_think
1
0
1
0
User avatar
celeste_hearts_lesbianceleste_hearts_transceleste_hearts_demisexual flori_ava_star:~cursor_blinking @star@amazonawaws.com
8mo
@ellis this probby also applies to other programming languages
:neocat_sign_yes@transfem.social:1
0
0
1
1
User avatar
max*ine @max@p2502.net
8mo
@star the latter looks very wrong to me. the only attribute i'd maybe consider sorting before doc comments is cfg
0
0
1
0
User avatar
lis comfytea lesbianthoughts @lis@mk.catgirlsfor.science
8mo
@star if rustfmt doesn't prefer one or the other, does it really matter?
2
0
1
0
User avatar
lis comfytea lesbianthoughts @lis@mk.catgirlsfor.science
8mo
@star lawful evil: sort attributes alphabetically, treating /// comment like #[doc(…)], since it's just syntactic sugar anyway
1
0
1
0
User avatar
celeste_hearts_lesbianceleste_hearts_transceleste_hearts_demisexual flori_ava_star:~cursor_blinking @star@amazonawaws.com
8mo
@lis omg this is perfect

thank you so much. i will torment my coworkers with this /hj
0
0
2
0
User avatar
celeste_hearts_lesbianceleste_hearts_transceleste_hearts_demisexual flori_ava_star:~cursor_blinking @star@amazonawaws.com
8mo
@lis in my personal experience, yes. these directives could be visually separated enough from the function definition by the docs, that you accidentally forget about them
0
0
1
0
User avatar
cn (old) ->dhcp nonbinary @cancername@mas.to
8mo
@star ???
0
0
0
0