Mercurial > public > mercurial-scm > hg
diff rust/chg/src/locator.rs @ 44689:6bef9d43cc55
rust-chg: use "crate::" to import local modules
I feel it's easier to follow to resolve modules from the crate root than
relative path from self module.
Differential Revision: https://phab.mercurial-scm.org/D8400
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 10 Apr 2020 21:38:08 +0900 |
parents | 1f5ab1a9363d |
children | 61fda2dbc522 |
line wrap: on
line diff
--- a/rust/chg/src/locator.rs Fri Apr 10 21:35:16 2020 +0900 +++ b/rust/chg/src/locator.rs Fri Apr 10 21:38:08 2020 +0900 @@ -21,9 +21,9 @@ use tokio_process::{Child, CommandExt}; use tokio_timer; -use super::clientext::ChgClientExt; -use super::message::{Instruction, ServerSpec}; -use super::procutil; +use crate::clientext::ChgClientExt; +use crate::message::{Instruction, ServerSpec}; +use crate::procutil; const REQUIRED_SERVER_CAPABILITIES: &[&str] = &[ "attachio",