Commit 7382e39
committed
relax trait bound for postgres try_from_client_and_connection
tokio_postgres::Socket is not supported for wasm32-unknown-unknown
target. tokio_postgres, additionally, may return a Connection type whose
first bound is not a tokio_postgres::Socket.
Accordingly, let's relax the bounds on try_from_client_and_connection so
that we match the loosest type that may be returned by tokio_postgres's
connection methods, which enables try_from_client_and_connection to work
for a wasm32-unknown-unknown target.1 parent ff3b166 commit 7382e39
1 file changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
400 | | - | |
401 | | - | |
| 401 | + | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
| 407 | + | |
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
| |||
879 | 880 | | |
880 | 881 | | |
881 | 882 | | |
882 | | - | |
883 | | - | |
884 | | - | |
| 883 | + | |
| 884 | + | |
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
890 | | - | |
| 890 | + | |
| 891 | + | |
891 | 892 | | |
892 | 893 | | |
893 | 894 | | |
| |||
0 commit comments