From 65d80a9812bf76b255e50772c70096f18ba14e41 Mon Sep 17 00:00:00 2001 From: "G.Reijn" <26114636+Gijsreyn@users.noreply.github.com> Date: Fri, 24 Jul 2026 06:10:34 +0200 Subject: [PATCH] feat: remove experimental flag `function()` --- lib/dsc-lib/locales/en-us.toml | 1 - lib/dsc-lib/src/functions/format.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/lib/dsc-lib/locales/en-us.toml b/lib/dsc-lib/locales/en-us.toml index c5024eea5..11205fd98 100644 --- a/lib/dsc-lib/locales/en-us.toml +++ b/lib/dsc-lib/locales/en-us.toml @@ -456,7 +456,6 @@ invalidArgType = "Invalid argument type, argument must be an array or string" [functions.format] description = "Formats a string using the given arguments" syntax = "format( , , ... )" -experimental = "`format()` function is experimental" formatInvalid = "First `format()` argument must be a string" numberTooLarge = "Number is too large" invalidArgType = "Unsupported argument type" diff --git a/lib/dsc-lib/src/functions/format.rs b/lib/dsc-lib/src/functions/format.rs index 070178930..7c1a7ca86 100644 --- a/lib/dsc-lib/src/functions/format.rs +++ b/lib/dsc-lib/src/functions/format.rs @@ -7,7 +7,6 @@ use crate::functions::{FunctionArgKind, Function, FunctionCategory, FunctionMeta use rt_format::{Format as RtFormat, FormatArgument, ParsedFormat, argument::NoNamedArguments}; use rust_i18n::t; use serde_json::Value; -use tracing::warn; #[derive(Debug, PartialEq)] enum Variant { @@ -103,7 +102,6 @@ impl Function for Format { } fn invoke(&self, args: &[Value], _context: &Context) -> Result { - warn!("{}", t!("functions.format.experimental")); let Some(format_string) = args[0].as_str() else { return Err(DscError::Parser(t!("functions.format.formatInvalid").to_string())); };