From 06722702ea35434189d7de2b13a00209b2ebbd6d Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Fri, 24 May 2019 17:58:37 -0700 Subject: Use full reference to AsRef in Enum macro Macros typically should reference types by their full path and not assume that they are in scope wherever the macro is expanded. We did missed one spot where AsRef was not fully qualified in the Enum macro. While that is not much of an issue here (and there may be more occurrences, e.g., in the auto derives) lets fix that up for the sake of consistency. --- nitrocli/src/arg_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitrocli/src/arg_util.rs b/nitrocli/src/arg_util.rs index 9fa254b..2996060 100644 --- a/nitrocli/src/arg_util.rs +++ b/nitrocli/src/arg_util.rs @@ -72,7 +72,7 @@ macro_rules! Enum { } } - impl AsRef for $name { + impl ::std::convert::AsRef for $name { fn as_ref(&self) -> &'static str { match *self { $( -- cgit v1.2.1