Просмотр исходного кода

net/transport remove unnecessary pub

piltom 4 лет назад
Родитель
Сommit
7cbf0bd95b
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/net/transport.rs
  2. 1 1
      src/net/transport/tor.rs

+ 1 - 1
src/net/transport.rs

@@ -9,7 +9,7 @@ mod tor;
 
 
 pub use tcp::TcpTransport;
 pub use tcp::TcpTransport;
 pub use tls::TlsTransport;
 pub use tls::TlsTransport;
-pub use tor::{TorController, TorTransport};
+pub use tor::TorTransport;
 
 
 pub trait Transport {
 pub trait Transport {
     type Acceptor;
     type Acceptor;

+ 1 - 1
src/net/transport/tor.rs

@@ -29,7 +29,7 @@ pub struct TorTransport {
 
 
 /// Represents information needed to communicate with the Tor control socket
 /// Represents information needed to communicate with the Tor control socket
 #[derive(Clone)]
 #[derive(Clone)]
-pub struct TorController {
+struct TorController {
     socket: Arc<Socket>, // Need to hold this socket open as long as the tor trasport is alive, so ephemeral services are dropped when TorTransport is dropped
     socket: Arc<Socket>, // Need to hold this socket open as long as the tor trasport is alive, so ephemeral services are dropped when TorTransport is dropped
     auth: String,
     auth: String,
 }
 }