Skip to content

Commit 63e8979

Browse files
authored
feat: remove experimental flag function() (#1648)
1 parent 2d37234 commit 63e8979

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

lib/dsc-lib/locales/en-us.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ invalidArgType = "Invalid argument type, argument must be an array or string"
456456
[functions.format]
457457
description = "Formats a string using the given arguments"
458458
syntax = "format( <string>, <value>, ... )"
459-
experimental = "`format()` function is experimental"
460459
formatInvalid = "First `format()` argument must be a string"
461460
numberTooLarge = "Number is too large"
462461
invalidArgType = "Unsupported argument type"

lib/dsc-lib/src/functions/format.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use crate::functions::{FunctionArgKind, Function, FunctionCategory, FunctionMeta
77
use rt_format::{Format as RtFormat, FormatArgument, ParsedFormat, argument::NoNamedArguments};
88
use rust_i18n::t;
99
use serde_json::Value;
10-
use tracing::warn;
1110

1211
#[derive(Debug, PartialEq)]
1312
enum Variant {
@@ -103,7 +102,6 @@ impl Function for Format {
103102
}
104103

105104
fn invoke(&self, args: &[Value], _context: &Context) -> Result<Value, DscError> {
106-
warn!("{}", t!("functions.format.experimental"));
107105
let Some(format_string) = args[0].as_str() else {
108106
return Err(DscError::Parser(t!("functions.format.formatInvalid").to_string()));
109107
};

0 commit comments

Comments
 (0)