aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-05-24 17:58:37 -0700
committerDaniel Mueller <deso@posteo.net>2019-05-24 17:58:37 -0700
commit06722702ea35434189d7de2b13a00209b2ebbd6d (patch)
treee54eead6e187d0e11f7312f3e91298b59b05edd2
parent5383aa73b339e6a53ff027ee6012a3428f67466a (diff)
downloadnitrocli-06722702ea35434189d7de2b13a00209b2ebbd6d.tar.gz
nitrocli-06722702ea35434189d7de2b13a00209b2ebbd6d.tar.bz2
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.
-rw-r--r--nitrocli/src/arg_util.rs2
1 files changed, 1 insertions, 1 deletions
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<str> for $name {
+ impl ::std::convert::AsRef<str> for $name {
fn as_ref(&self) -> &'static str {
match *self {
$(