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
I'm not sure if this is just a configuration issue on my end, but rust-analyzer seems convinced that the only version of traits like Display or Into come from this library.
This has been particularly annoying when I've gone to import one of these traits automatically, but it only suggests importing the derive_more version. I'd rather not have imports from derive_more in the modules I'm not using it, so I've been having to manually import things every time this clash happens.
A couple of examples — first from a diagnostic:
It should be noted that the file that error is coming from doesn't mention or import derive_moreanywhere. It's just a carry-over from other modules in the crate using it.
And the annoying no-correct-import case:
I'm not sure if there is a clever way around this, but if not, I'd honestly prefer to have to separately import the trait from std!
What do others think / what was the rationale for re-exporting those std traits to begin with?
The text was updated successfully, but these errors were encountered:
That does seem like quite a bad side-effect of the change. @tyranron what do you think about this. Can you think of a reason to address this? I remember some colleagues complaining about this same issue.
I'm not sure if this is just a configuration issue on my end, but
rust-analyzer
seems convinced that the only version of traits likeDisplay
orInto
come from this library.This has been particularly annoying when I've gone to import one of these traits automatically, but it only suggests importing the
derive_more
version. I'd rather not have imports fromderive_more
in the modules I'm not using it, so I've been having to manually import things every time this clash happens.A couple of examples — first from a diagnostic:
It should be noted that the file that error is coming from doesn't mention or import
derive_more
anywhere. It's just a carry-over from other modules in the crate using it.And the annoying no-correct-import case:
I'm not sure if there is a clever way around this, but if not, I'd honestly prefer to have to separately import the trait from std!
What do others think / what was the rationale for re-exporting those std traits to begin with?
The text was updated successfully, but these errors were encountered: