about summary refs log tree commit diff
path: root/finito-postgres/src/tests.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-09-26T21·19+0200
committerVincent Ambo <mail@tazj.in>2018-09-26T21·19+0200
commit45afa18846556c3486e6922108ed6e8fcf6ec125 (patch)
treef3db252fc8bdb5ffb08e3cf57d701ed856a5326b /finito-postgres/src/tests.rs
parentc4b94d8d2dc00c0742cf7af1c0fd2c1256f75078 (diff)
feat(postgres): Compatibility with new associated error type
Changes the implementation of action execution to deal with the
returned associated errors.

The only sensible constraint on those errors that I could think of for
now is `Debug`, meaning that errors are now persisted as debug
messages.

This is not as nice to work with for a future implementation of
retryable actions as the equivalent in Haskell, but maybe an idea
shows up underway. The main issue is that most of the common error
types will not be implementing Serde traits, so serialization to/from
the same error type is difficult.

Adding an implementation constraint for JSON serialisation on error
types (i.e. `S::Error: Serialize + Deserialize`) would probably cause
headaches for users, especially if they are trying to use an
out-of-the-box error type or an error type wrapping foreign errors.

Det ska'kke være lett ...
Diffstat (limited to 'finito-postgres/src/tests.rs')
-rw-r--r--finito-postgres/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/finito-postgres/src/tests.rs b/finito-postgres/src/tests.rs
index 55ada1329143..b1b5821be3c4 100644
--- a/finito-postgres/src/tests.rs
+++ b/finito-postgres/src/tests.rs
@@ -1,5 +1,5 @@
 use super::*;
-use finito;
+
 use finito_door::*;
 use postgres::{Connection, TlsMode};