@@ -1685,10 +1685,6 @@ impl Date {
16851685 ///
16861686 /// [spec]: https://tc39.es/ecma402/#sup-date.prototype.tolocaledatestring
16871687 /// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString
1688- #[ allow(
1689- unused_variables,
1690- reason = "`args` and `context` are used when the `intl` feature is enabled"
1691- ) ]
16921688 pub ( crate ) fn to_locale_date_string (
16931689 this : & JsValue ,
16941690 args : & [ JsValue ] ,
@@ -1700,7 +1696,7 @@ impl Date {
17001696 }
17011697 #[ cfg( not( feature = "intl" ) ) ]
17021698 {
1703- Self :: to_string ( this, & [ ] , context)
1699+ Self :: to_string ( this, args , context)
17041700 }
17051701 }
17061702
@@ -1713,10 +1709,6 @@ impl Date {
17131709 ///
17141710 /// [spec]: https://tc39.es/ecma402/#sup-date.prototype.tolocalestring
17151711 /// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
1716- #[ allow(
1717- unused_variables,
1718- reason = "`args` and `context` are used when the `intl` feature is enabled"
1719- ) ]
17201712 pub ( crate ) fn to_locale_string (
17211713 this : & JsValue ,
17221714 args : & [ JsValue ] ,
@@ -1728,7 +1720,7 @@ impl Date {
17281720 }
17291721 #[ cfg( not( feature = "intl" ) ) ]
17301722 {
1731- Self :: to_string ( this, & [ ] , context)
1723+ Self :: to_string ( this, args , context)
17321724 }
17331725 }
17341726
@@ -1742,10 +1734,6 @@ impl Date {
17421734 ///
17431735 /// [spec]: https://tc39.es/ecma402/#sup-date.prototype.tolocaletimestring
17441736 /// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString
1745- #[ allow(
1746- unused_variables,
1747- reason = "`args` and `context` are used when the `intl` feature is enabled"
1748- ) ]
17491737 pub ( crate ) fn to_locale_time_string (
17501738 this : & JsValue ,
17511739 args : & [ JsValue ] ,
@@ -1757,7 +1745,7 @@ impl Date {
17571745 }
17581746 #[ cfg( not( feature = "intl" ) ) ]
17591747 {
1760- Self :: to_string ( this, & [ ] , context)
1748+ Self :: to_string ( this, args , context)
17611749 }
17621750 }
17631751
0 commit comments