From 288cd8b16b619dc7824467bbe3a09e9502b3bf5a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 25 Apr 2019 09:30:24 +0200 Subject: Add comment to helper type --- src/backend.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend.rs b/src/backend.rs index 57afd10..23a09d4 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -15,6 +15,9 @@ pub enum Backend { RepologyOrg(RestApi), } +/// Implement Api for Backend +/// +/// With this, we can use the `Backend` object and do not have to care whether we have a librepology:: impl Api for Backend { fn project>(&self, name: N) -> Result> { match self { -- cgit v1.2.3