Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Commit 30742c2

Browse files
committed
Deprecated unused? Value variants
1 parent 769731b commit 30742c2

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/conditional.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ impl<'a> BuildCondition<'a> for Condition<'a> {
286286
ternary.build_to_writer(writer, dialect, lookup)
287287
}
288288
Condition::Value(value) => match value {
289+
#[allow(deprecated)]
289290
Value::Ident(string) => write!(writer, "{string}"),
290291
Value::Column {
291292
table_name,

‎src/insert.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ impl<'post_build> Insert<'post_build> for InsertImpl<'_, 'post_build> {
192192
write!(s, "(").unwrap();
193193
for (idx_2, y) in x.iter().enumerate() {
194194
match y {
195+
#[allow(deprecated)]
195196
Value::Ident(st) => write!(s, "\"{}\"", *st).unwrap(),
196197
Value::Choice(c) => write!(s, "{}", postgres::fmt(c)).unwrap(),
197198
Value::Null(NullType::Choice) => write!(s, "NULL").unwrap(),

‎src/value.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ pub enum Value<'a> {
6868
/// Representation of an identifier, e.g. a column.
6969
/// This variant will not be escaped, so do not
7070
/// pass unchecked data to it.
71+
#[deprecated(note = "Is this still used?")]
7172
Ident(&'a str),
7273
/// Representation of a column name with
7374
/// an optional table name
@@ -114,11 +115,14 @@ pub enum Value<'a> {
114115
/// Uuid representation
115116
Uuid(Uuid),
116117
/// Uuid in hyphenated representation
118+
#[deprecated(note = "Was this ever used?")]
117119
UuidHyphenated(Uuid),
118120
/// Uuid in simple text representation
121+
#[deprecated(note = "Was this ever used?")]
119122
UuidSimple(Uuid),
120123
/// serde_json's Value representation
121124
JsonValue(&'a serde_json::Value),
125+
122126
/// Mac address representation
123127
#[cfg(feature = "postgres-only")]
124128
MacAddress(mac_address::MacAddress),

0 commit comments

Comments
 (0)