Skip to content

Commit e049ee7

Browse files
authored
Change demo constructor to from_double_with_round_trip_precision (#6560)
1 parent b5520a8 commit e049ee7

File tree

6 files changed

+7
-19
lines changed

6 files changed

+7
-19
lines changed

ffi/capi/bindings/demo_gen/Decimal.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/bindings/demo_gen/Decimal.mjs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/bindings/demo_gen/DecimalFormatter.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/bindings/demo_gen/DecimalFormatter.mjs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/bindings/demo_gen/index.mjs

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/capi/src/fixed_decimal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ pub mod ffi {
126126
#[diplomat::rust_link(fixed_decimal::DoublePrecision, Enum, hidden)]
127127
#[diplomat::attr(js, rename = "from_number_with_lower_magnitude")]
128128
#[diplomat::attr(all(supports = fallible_constructors, supports = named_constructors), named_constructor)]
129-
#[diplomat::demo(default_constructor)]
130129
pub fn from_double_with_lower_magnitude(
131130
f: f64,
132131
magnitude: i16,
@@ -160,6 +159,7 @@ pub mod ffi {
160159
#[diplomat::rust_link(fixed_decimal::DoublePrecision, Enum, hidden)]
161160
#[diplomat::attr(js, rename = "from_number_with_round_trip_precision")]
162161
#[diplomat::attr(all(supports = fallible_constructors, supports = named_constructors), named_constructor)]
162+
#[diplomat::demo(default_constructor)]
163163
pub fn from_double_with_round_trip_precision(
164164
f: f64,
165165
) -> Result<Box<Decimal>, DecimalLimitError> {

0 commit comments

Comments
 (0)