Rust: types written with their full path instead of imported #355
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The style guide imports type names and uses them unqualified. 437 places outside tests write paths such as
std::collections::HashMap<..>,std::time::Instantorstd::sync::Arcinline (2026-10-24): main.rs 75, db.rs 60, web.rs 38, signals.rs 33, feed/src/lib.rs 32, directory.rs 31.Done in
f22c199: 222 inline type paths are now imports and bare names, file by file, where the name is unambiguous in that file. 193 stay qualified on purpose: common names the guide's exception covers (reqwest::Client, anyhow::Error/Result, std::sync::Mutex beside tokio's, serde_json::Value beside sea_orm's, Ordering::Relaxed), names a file uses from two paths (std and tokio Instant), and paths in test-only code or under a function's own import. No behaviour change; tests and clippy pass.