##// END OF EJS Templates
rust-chg: use "crate::" to import local modules...
Yuya Nishihara -
r45180:6bef9d43 default
parent child Browse files
Show More
@@ -12,8 +12,8 b' use tokio_hglib::codec::ChannelMessage;'
12 12 use tokio_hglib::protocol::MessageLoop;
13 13 use tokio_hglib::{Client, Connection};
14 14
15 use super::message;
16 use super::procutil;
15 use crate::message;
16 use crate::procutil;
17 17
18 18 /// Future to send client-side fds over the command server channel.
19 19 ///
@@ -15,10 +15,10 b' use std::path::Path;'
15 15 use tokio_hglib::protocol::{OneShotQuery, OneShotRequest};
16 16 use tokio_hglib::{Client, Connection};
17 17
18 use super::attachio::AttachIo;
19 use super::message::{self, Instruction};
20 use super::runcommand::ChgRunCommand;
21 use super::uihandler::SystemHandler;
18 use crate::attachio::AttachIo;
19 use crate::message::{self, Instruction};
20 use crate::runcommand::ChgRunCommand;
21 use crate::uihandler::SystemHandler;
22 22
23 23 pub trait ChgClientExt<C>
24 24 where
@@ -21,9 +21,9 b' use tokio_hglib::UnixClient;'
21 21 use tokio_process::{Child, CommandExt};
22 22 use tokio_timer;
23 23
24 use super::clientext::ChgClientExt;
25 use super::message::{Instruction, ServerSpec};
26 use super::procutil;
24 use crate::clientext::ChgClientExt;
25 use crate::message::{Instruction, ServerSpec};
26 use crate::procutil;
27 27
28 28 const REQUIRED_SERVER_CAPABILITIES: &[&str] = &[
29 29 "attachio",
@@ -15,9 +15,9 b' use tokio_hglib::codec::ChannelMessage;'
15 15 use tokio_hglib::protocol::MessageLoop;
16 16 use tokio_hglib::{Client, Connection};
17 17
18 use super::attachio::AttachIo;
19 use super::message::{self, CommandType};
20 use super::uihandler::SystemHandler;
18 use crate::attachio::AttachIo;
19 use crate::message::{self, CommandType};
20 use crate::uihandler::SystemHandler;
21 21
22 22 enum AsyncS<R, S> {
23 23 Ready(R),
@@ -12,8 +12,8 b' use std::process::{Command, Stdio};'
12 12 use tokio;
13 13 use tokio_process::{ChildStdin, CommandExt};
14 14
15 use super::message::CommandSpec;
16 use super::procutil;
15 use crate::message::CommandSpec;
16 use crate::procutil;
17 17
18 18 /// Callback to process shell command requests received from server.
19 19 pub trait SystemHandler: Sized {
General Comments 0
You need to be logged in to leave comments. Login now