We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PgLTree::from
From<Vec<PgLTreeLabel>>
1 parent 24317d5 commit 005a2d2Copy full SHA for 005a2d2
1 file changed
sqlx-postgres/src/types/ltree.rs
@@ -95,11 +95,6 @@ impl PgLTree {
95
Self::default()
96
}
97
98
- /// creates ltree from a [`Vec<PgLTreeLabel>`]
99
- pub fn from(labels: Vec<PgLTreeLabel>) -> Self {
100
- Self { labels }
101
- }
102
-
103
/// creates ltree from an iterator with checking labels
104
// TODO: this should just be removed but I didn't want to bury it in a massive diff
105
#[deprecated = "renamed to `try_from_iter()`"]
@@ -138,6 +133,12 @@ impl PgLTree {
138
133
139
134
140
135
136
+impl From<Vec<PgLTreeLabel>> for PgLTree {
137
+ fn from(labels: Vec<PgLTreeLabel>) -> Self {
+ Self { labels }
+ }
+}
141
+
142
impl FromIterator<PgLTreeLabel> for PgLTree {
143
fn from_iter<T: IntoIterator<Item = PgLTreeLabel>>(iter: T) -> Self {
144
Self {
0 commit comments