Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/dsc-lib/locales/en-us.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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( <string>, <value>, ... )"
experimental = "`format()` function is experimental"
formatInvalid = "First `format()` argument must be a string"
numberTooLarge = "Number is too large"
invalidArgType = "Unsupported argument type"
Expand Down
2 changes: 0 additions & 2 deletions lib/dsc-lib/src/functions/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -103,7 +102,6 @@ impl Function for Format {
}

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