aboutsummaryrefslogtreecommitdiff
path: root/src/parse_trait_sig.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-22 11:35:39 +0100
committerMartin Fischer <martin@push-f.com>2021-11-22 11:35:39 +0100
commit5c6f0d3510517d867c27e9a658e5015fb9b3d5ef (patch)
tree84d4c35dfa2aa2c7352693e4006a846b4e9b5695 /src/parse_trait_sig.rs
parentf4419ca138a5307a705decf70683414296dcf116 (diff)
refactor: move Span out of TransformError enum
Diffstat (limited to 'src/parse_trait_sig.rs')
-rw-r--r--src/parse_trait_sig.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse_trait_sig.rs b/src/parse_trait_sig.rs
index 825c425..aff4fe9 100644
--- a/src/parse_trait_sig.rs
+++ b/src/parse_trait_sig.rs
@@ -72,10 +72,10 @@ pub fn parse_trait_signature(
let return_type = match &mut signature.output {
ReturnType::Type(_, og_type) => match type_converter.convert_type(og_type) {
Ok(ret_type) => ret_type,
- Err(TransformError::AssocTypeWithoutDestType(span)) => {
+ Err((span, TransformError::AssocTypeWithoutDestType)) => {
return Err((span, MethodError::AssocTypeWithoutDestType));
}
- Err(TransformError::UnsupportedType(span)) => {
+ Err((span, TransformError::UnsupportedType)) => {
return Err((span, MethodError::UnsupportedType));
}
},