summaryrefslogtreecommitdiff
path: root/src/query.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/query.rs')
-rw-r--r--src/query.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/query.rs b/src/query.rs
index 5a9d4ae..1cd5492 100644
--- a/src/query.rs
+++ b/src/query.rs
@@ -51,7 +51,7 @@ impl NamedSwitchQuery<'_> {
match self.get_value() {
Some(value) => self.insert(Some(value)),
None => {
- let error = QueryError::MissingNamed(self.debug_name());
+ let error = SwitchboardError::MissingNamed(self.debug_name());
self.switchboard.errors.push(error);
}
}
@@ -94,7 +94,7 @@ impl NamedSwitchQuery<'_> {
}
}
_ => {
- let error = QueryError::Repeated(self.debug_name());
+ let error = SwitchboardError::Repeated(self.debug_name());
self.switchboard.errors.push(error);
None
}
@@ -153,7 +153,7 @@ impl PositionalSwitchQuery<'_> {
match self.switchboard.pop() {
Some(value) => self.insert(Some(value)),
None => {
- let error = QueryError::MissingPositional(self.name.clone());
+ let error = SwitchboardError::MissingPositional(self.name.clone());
self.switchboard.errors.push(error);
}
}