Commit 241fbd87 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Have caller of dirmgr_builder() provide Arc.

parent 2f2ba8db
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -91,11 +91,11 @@ impl<R: Runtime> TorClientBuilder<R> {
    /// Only available when compiled with the `experimental-api` feature: this
    /// code is unstable.
    #[cfg(all(feature = "experimental-api", feature = "error_detail"))]
    pub fn dirmgr_builder<B>(mut self, builder: B) -> Self
    pub fn dirmgr_builder<B>(mut self, builder: Arc<dyn DirProviderBuilder<R>>) -> Self
    where
        B: DirProviderBuilder<R> + 'static,
    {
        self.dirmgr_builder = Arc::new(builder);
        self.dirmgr_builder = builder;
        self
    }