summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2018-12-04 23:49:40 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2018-12-04 23:49:40 +0000
commita8ee97ab7ec2f8a2bc9f46a58bc452b9fcd601f4 (patch)
tree680d65f812125cde7b2fffe76417bfd41e0f1d8c
parent4d0b76c935d9198a297f9594bd10e309b42af1bf (diff)
downloadparsebyregex-a8ee97ab7ec2f8a2bc9f46a58bc452b9fcd601f4.tar.bz2
Be specific about std::result::Result
-rw-r--r--parsebyregex-derive/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsebyregex-derive/src/lib.rs b/parsebyregex-derive/src/lib.rs
index 12f94e6..38381bf 100644
--- a/parsebyregex-derive/src/lib.rs
+++ b/parsebyregex-derive/src/lib.rs
@@ -24,7 +24,7 @@ fn impl_pbr_macro(ast: &syn::DeriveInput) -> TokenStream {
let body = gen_struct_body(&name, &regex);
quote! {
impl ParseByRegex for #name {
- fn parse_by_regex<T: AsRef<str>>(input: T) -> Result<Self, Box<std::error::Error>> {
+ fn parse_by_regex<T: AsRef<str>>(input: T) -> std::result::Result<Self, Box<std::error::Error>> {
use parsebyregex::lazy_static;
use parsebyregex::Regex;
lazy_static! {
@@ -49,7 +49,7 @@ fn impl_pbr_macro(ast: &syn::DeriveInput) -> TokenStream {
let body = gen_enum_body(&name, &edata);
quote! {
impl ParseByRegex for #name {
- fn parse_by_regex<T: AsRef<str>>(input: T) -> Result<Self, Box<std::error::Error>> {
+ fn parse_by_regex<T: AsRef<str>>(input: T) -> std::result::Result<Self, Box<std::error::Error>> {
use parsebyregex::lazy_static;
use parsebyregex::Regex;
lazy_static! {