From 29c95d2b381844b99ff3cd1c882e3dacd41c4e99 Mon Sep 17 00:00:00 2001 From: Kostia Balytskyi Date: Tue, 27 Apr 2021 07:56:27 -0700 Subject: [PATCH] blobstore: fix confusing comment about an exported macro Reviewed By: StanislavGlebik Differential Revision: D28026865 fbshipit-source-id: 57701d59fe6048e78ceebd32ed7e0437e052c305 --- eden/mononoke/blobstore/src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eden/mononoke/blobstore/src/macros.rs b/eden/mononoke/blobstore/src/macros.rs index a3eb3e09e5..987080b625 100644 --- a/eden/mononoke/blobstore/src/macros.rs +++ b/eden/mononoke/blobstore/src/macros.rs @@ -51,8 +51,8 @@ macro_rules! impl_blobstore_conversions { } /// You can use this macro under the following conditions: -/// 1. handle_thrift_type can be serialized into handle_type using thrift compact protocol -/// 2. value_thrift_type can be serialized into value_type using thrift compact protocol +/// 1. handle_type needs to implement TryFrom and Into +/// 2. same for value_type and value_thrift_type /// 3. value_type has method `fn handle(&self) -> handle_type` /// 4. handle_type has method `fb blobstore_key(&self) -> String` #[macro_export]