From f048f39812e4024d612cc197743b9513f8238584 Mon Sep 17 00:00:00 2001 From: Harry Maclean Date: Wed, 3 Aug 2022 23:32:30 +1200 Subject: [PATCH] Derive Debug for Format It's useful to be able to inspect Format values when debugging. --- postgres-types/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/postgres-types/src/lib.rs b/postgres-types/src/lib.rs index 48f6b5d4..e912b378 100644 --- a/postgres-types/src/lib.rs +++ b/postgres-types/src/lib.rs @@ -844,6 +844,7 @@ pub trait ToSql: fmt::Debug { /// Supported Postgres message format types /// /// Using Text format in a message assumes a Postgres `SERVER_ENCODING` of `UTF8` +#[derive(Debug)] pub enum Format { /// Text format (UTF-8) Text,