From 4c87779c1060247500badff7ef5760a6ea6e0931 Mon Sep 17 00:00:00 2001 From: Maaz Ahmed <maaz.a@subcom.tech> Date: Tue, 2 Jan 2024 11:36:24 +0530 Subject: [PATCH] fix: RawExpr methods should be public --- src/query/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/query/mod.rs b/src/query/mod.rs index e5f157f..75a8cbf 100644 --- a/src/query/mod.rs +++ b/src/query/mod.rs @@ -287,17 +287,17 @@ impl RawExpr { /// Construct a raw expression type from a string /// /// See type level docs for additional details - fn new<T: ToOwned<Owned = String>>(query: T) -> Self { + pub fn new<T: ToOwned<Owned = String>>(query: T) -> Self { RawExpr(query.to_owned()) } /// Construct a raw expression type from a type that that implements `Operable` /// /// See type level docs for additional details - fn from_expr<E: Operable>(expr: E) -> Self { + pub fn from_expr<E: Operable>(expr: E) -> Self { RawExpr(expr.to_string()) } /// Get the inner string - fn into_inner(self) -> String { + pub fn into_inner(self) -> String { self.0 } } -- GitLab