Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7fc6c7c authored by Zach Johnson's avatar Zach Johnson
Browse files

rusty-gd: clean up imports & pub exports

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: Ibd11c0a8c977f022164a5f2c314cc3c2773b68fa
parent 6ad1b2c6
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -8,8 +8,10 @@ pub mod empty {
    pub use protobuf::well_known_types::Empty;
}

pub use bt_facade_common_proto::common;
pub use bt_facade_rootservice_proto::rootservice;
use bt_facade_common_proto::common;
use bt_facade_rootservice_proto::rootservice;
use rootservice::*;
use rootservice_grpc::{create_root_facade, RootFacade};

use bt_hal::rootcanal_hal::{RootcanalConfig, RootcanalHal};
use bt_hci::facade::HciLayerFacadeService;
@@ -28,15 +30,10 @@ use futures::executor::block_on;
/// Bluetooth testing root facade service
#[derive(Clone)]
pub struct RootFacadeService {
    /// Tokio runtime
    rt: Arc<Runtime>,
    manager: FacadeServiceManager,
}

use bt_facade_rootservice_proto::rootservice::*;
use rootservice_grpc::create_root_facade;
use rootservice_grpc::RootFacade;

impl RootFacadeService {
    /// Create a new instance of the root facade service
    pub fn create(
+9 −11
Original line number Diff line number Diff line
@@ -2,6 +2,13 @@

mod facade_grpc;

/// Refer to the following on why we are doing this and for possible solutions:
/// https://github.com/tikv/grpc-rs/issues/276
pub mod empty {
    pub use protobuf::well_known_types::Empty;
}
use empty::Empty;

use hci_layer_facade_proto::facade;
use facade_grpc::{HciLayerFacade, create_hci_layer_facade};
use facade::*;
@@ -19,19 +26,10 @@ use std::sync::Arc;
/// HCI layer facade service
#[derive(Clone)]
pub struct HciLayerFacadeService {
    /// HCI interface
    pub hci_exports: HciExports,
    /// Tokio runtime
    pub rt: Arc<Runtime>,
    hci_exports: HciExports,
    rt: Arc<Runtime>,
}

/// Refer to the following on why we are doing this and for possible solutions:
/// https://github.com/tikv/grpc-rs/issues/276
pub mod empty {
    pub use protobuf::well_known_types::Empty;
}
use empty::Empty;

impl HciLayerFacadeService {
    /// Create a new instance of HCI layer facade service
    pub fn create(hci_exports: HciExports, rt: Arc<Runtime>) -> grpcio::Service {