You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wouldn't it be useful to reject uploads where the lib.rs contains nothing but the default contents of a new library? These uploads are obviously either tests or accidents.
#[cfg(test)]mod tests {#[test]fnit_works(){let result = 2 + 2;assert_eq!(result,4);}}
If someone wants to claim a name, then they can still (at least) add a comment to the file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Wouldn't it be useful to reject uploads where the lib.rs contains nothing but the default contents of a new library? These uploads are obviously either tests or accidents.
If someone wants to claim a name, then they can still (at least) add a comment to the file.
Beta Was this translation helpful? Give feedback.
All reactions