Use stricter paths when referring to items
未關閉
- 主要語言
- Rust
- 星號
- 26
- 分支
- 3
- PR 合併指標
- 30 天內沒有已合併 PR
描述
https://github.com/althonos/blanket/blob/ce0b8ab848769680d2f290bf1d000c2dbbb29d8a/src/types/arc.rs#L11-L13
Just a couple small tips/recommendations:
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).
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 by `std` but have the additional benefit of being supported/accessible in `no_std` crates.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。