-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
JetBrains IDE is trying it's best to complete code, and unfortunately completes ::new for every object, because there's
impl<T> PointExt for T where T: Point {}
pub trait PointExt: Point {
fn new() -> Self {
Self::from_value(Zero::zero())
}
even for types which actually don't implement Point.
We live in imperfect world, and it would be easier if rstar moved ::new to Point from PointExt. Or just hid it from public API. Perhaps #[doc(hidden)].
Metadata
Metadata
Assignees
Labels
No labels