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
It'd probably be better to use e.g. ::std::sync::Arc instead of std::sync::Arc here (and likewise for all of the other types), otherwise the path refers to whatever is named std in the local scope (which isn't necessarily the std crate).
Further these types should be pulled from ::core else ::alloc (if not found in core) as these crates are simply re-exported by std but have the additional benefit of being supported/accessible in no_std crates.
The text was updated successfully, but these errors were encountered:
blanket/src/types/arc.rs
Lines 11 to 13 in ce0b8ab
Just a couple small tips/recommendations:
It'd probably be better to use e.g.
::std::sync::Arc
instead ofstd::sync::Arc
here (and likewise for all of the other types), otherwise the path refers to whatever is namedstd
in the local scope (which isn't necessarily thestd
crate).https://doc.rust-lang.org/reference/paths.html#path-qualifiers
Further these types should be pulled from
::core
else::alloc
(if not found in core) as these crates are simply re-exported bystd
but have the additional benefit of being supported/accessible inno_std
crates.The text was updated successfully, but these errors were encountered: