Skip to content

Commit fd74cc4

Browse files
committed
refactor: rename from_label_iter to from_iter for consistency
- Renamed the method from_label_iter to from_iter in PgLTree to align with naming conventions and improve clarity.
1 parent d595264 commit fd74cc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlx-core/src/postgres/types/ltree.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ impl PgLTree {
103103
}
104104

105105
/// creates ltree from an iterator with checking labels
106-
pub fn from_label_iter<I, S>(labels: I) -> Result<Self, PgLTreeParseError>
106+
#[allow(clippy::should_implement_trait)]
107+
pub fn from_iter<I, S>(labels: I) -> Result<Self, PgLTreeParseError>
107108
where
108109
String: From<S>,
109110
I: IntoIterator<Item = S>,

0 commit comments

Comments
 (0)