fix compilation warning

Summary: I got unused warning every time I build Mononoke.

Reviewed By: singhsrb

Differential Revision: D18573764

fbshipit-source-id: 23921f581bdc74655041a2413f80cb159b4ba010
This commit is contained in:
Stanislau Hlebik 2019-11-19 00:42:20 -08:00 committed by Facebook Github Bot
parent 0bab8ac4b2
commit bcfbc5c19e

View File

@ -24,6 +24,7 @@ use crate::{
#[derive(Clone)] #[derive(Clone)]
pub struct EdenApiRemoteStore(Arc<Box<dyn EdenApi>>); pub struct EdenApiRemoteStore(Arc<Box<dyn EdenApi>>);
#[cfg(test)]
impl EdenApiRemoteStore { impl EdenApiRemoteStore {
pub fn new(edenapi: Box<dyn EdenApi>) -> Self { pub fn new(edenapi: Box<dyn EdenApi>) -> Self {
Self(Arc::new(edenapi)) Self(Arc::new(edenapi))