Mercurial > public > mercurial-scm > hg
diff rust/chg/src/clientext.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 | 80d6e3415636 |
children | 61fda2dbc522 |
line wrap: on
line diff
--- a/rust/chg/src/clientext.rs Fri Apr 10 21:35:16 2020 +0900 +++ b/rust/chg/src/clientext.rs Fri Apr 10 21:38:08 2020 +0900 @@ -15,10 +15,10 @@ use tokio_hglib::protocol::{OneShotQuery, OneShotRequest}; use tokio_hglib::{Client, Connection}; -use super::attachio::AttachIo; -use super::message::{self, Instruction}; -use super::runcommand::ChgRunCommand; -use super::uihandler::SystemHandler; +use crate::attachio::AttachIo; +use crate::message::{self, Instruction}; +use crate::runcommand::ChgRunCommand; +use crate::uihandler::SystemHandler; pub trait ChgClientExt<C> where