File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,6 @@ impl PgLTree {
95
95
Self :: default ( )
96
96
}
97
97
98
- /// creates ltree from a [`Vec<PgLTreeLabel>`]
99
- pub fn from ( labels : Vec < PgLTreeLabel > ) -> Self {
100
- Self { labels }
101
- }
102
-
103
98
/// creates ltree from an iterator with checking labels
104
99
// TODO: this should just be removed but I didn't want to bury it in a massive diff
105
100
#[ 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 {
138
+ Self { labels }
139
+ }
140
+ }
141
+
141
142
impl FromIterator < PgLTreeLabel > for PgLTree {
142
143
fn from_iter < T : IntoIterator < Item = PgLTreeLabel > > ( iter : T ) -> Self {
143
144
Self {
You can’t perform that action at this time.
0 commit comments