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

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

Apply rustfmt to keep checkin hook happy

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost SimpleHalTest
Change-Id: I8ee5baf6fcfabcaefe08a7792e655e41cf502df1
parent d83a707c
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
//! Main BT lifecycle support

use gddi::{module, Registry, RegistryBuilder, Stoppable};
use bt_common::GrpcFacade;
use bt_hal::rootcanal_hal::RootcanalConfig;
use bt_hal::snoop::{SnoopConfig, SnoopMode};
use gddi::{module, Registry, RegistryBuilder, Stoppable};
use std::sync::Arc;
use tokio::runtime::Runtime;
use bt_common::GrpcFacade;

module! {
    stack_module,
@@ -32,9 +32,7 @@ impl Stack {
    /// Helper to set the rootcanal port
    pub async fn set_rootcanal_port(&self, port: Option<u16>) {
        if let Some(port) = port {
            self.registry
                .inject(RootcanalConfig::new("127.0.0.1", port))
                .await;
            self.registry.inject(RootcanalConfig::new("127.0.0.1", port)).await;
        }
    }

@@ -54,7 +52,9 @@ impl Stack {
    }

    /// Helper to get a grpc service
    pub async fn get_grpc<T: 'static + Clone + Send + Sync + GrpcFacade + Stoppable>(&self) -> grpcio::Service {
    pub async fn get_grpc<T: 'static + Clone + Send + Sync + GrpcFacade + Stoppable>(
        &self,
    ) -> grpcio::Service {
        self.get::<T>().await.into_grpc()
    }