Mercurial > public > mercurial-scm > hg
diff rust/chg/src/runcommand.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 | 90e05b304902 |
children | f87804825df5 |
line wrap: on
line diff
--- a/rust/chg/src/runcommand.rs Fri Apr 10 21:35:16 2020 +0900 +++ b/rust/chg/src/runcommand.rs Fri Apr 10 21:38:08 2020 +0900 @@ -15,9 +15,9 @@ use tokio_hglib::protocol::MessageLoop; use tokio_hglib::{Client, Connection}; -use super::attachio::AttachIo; -use super::message::{self, CommandType}; -use super::uihandler::SystemHandler; +use crate::attachio::AttachIo; +use crate::message::{self, CommandType}; +use crate::uihandler::SystemHandler; enum AsyncS<R, S> { Ready(R),