From 6b1e13d47f8f43d6da7f714cab3bc3f1f6c2728e Mon Sep 17 00:00:00 2001 From: Dadepo Aderemi Date: Sat, 20 Apr 2024 17:32:09 +0400 Subject: [PATCH] Rename SetMasklen to SetMaskLen --- src/postgres/mod.rs | 4 ++-- src/postgres/network_udfs.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/postgres/mod.rs b/src/postgres/mod.rs index b570797..4da02ca 100644 --- a/src/postgres/mod.rs +++ b/src/postgres/mod.rs @@ -14,7 +14,7 @@ use crate::postgres::math_udfs::{ }; use crate::postgres::network_udfs::{ broadcast, family, host, hostmask, inet_merge, inet_same_family, MaskLen, Netmask, Network, - SetMasklen, + SetMaskLen, }; mod math_udfs; @@ -52,7 +52,7 @@ fn register_network_udfs(ctx: &SessionContext) -> Result<()> { ctx.register_udf(ScalarUDF::from(MaskLen::new())); ctx.register_udf(ScalarUDF::from(Netmask::new())); ctx.register_udf(ScalarUDF::from(Network::new())); - ctx.register_udf(ScalarUDF::from(SetMasklen::new())); + ctx.register_udf(ScalarUDF::from(SetMaskLen::new())); Ok(()) } diff --git a/src/postgres/network_udfs.rs b/src/postgres/network_udfs.rs index 35c63d1..26bfe68 100644 --- a/src/postgres/network_udfs.rs +++ b/src/postgres/network_udfs.rs @@ -435,11 +435,11 @@ impl ScalarUDFImpl for Network { /// If the input is a CIDR, Address bits to the right of the new netmask are set to zero. /// Returns NULL if any of the columns contain NULL values. #[derive(Debug)] -pub struct SetMasklen { +pub struct SetMaskLen { signature: Signature, } -impl SetMasklen { +impl SetMaskLen { pub fn new() -> Self { Self { signature: Signature::exact(vec![Utf8, Int64], Volatility::Immutable), @@ -447,7 +447,7 @@ impl SetMasklen { } } -impl ScalarUDFImpl for SetMasklen { +impl ScalarUDFImpl for SetMaskLen { fn as_any(&self) -> &dyn std::any::Any { self }