[
https://issues.apache.org/jira/browse/THRIFT-5606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Z Yn updated THRIFT-5606:
-------------------------
Description:
The indentation of generated code for const douban is wrong.
{code}
pub struct ConstTESTINDENT;
impl ConstTESTINDENT {
pub fn const_value() -> OrderedFloat<f64> {
OrderedFloat::from(3.14159_f64) }
}
{code}
was:
```rust
pub struct ConstTESTINDENT;
impl ConstTESTINDENT {
pub fn const_value() -> OrderedFloat<f64> {
OrderedFloat::from(3.14159_f64) }
}
```
> Wrong indent for const double
> -----------------------------
>
> Key: THRIFT-5606
> URL: https://issues.apache.org/jira/browse/THRIFT-5606
> Project: Thrift
> Issue Type: Bug
> Components: Rust - Compiler
> Affects Versions: 0.16.0
> Reporter: Z Yn
> Priority: Trivial
> Fix For: 0.17.0
>
>
> The indentation of generated code for const douban is wrong.
> {code}
> pub struct ConstTESTINDENT;
> impl ConstTESTINDENT {
> pub fn const_value() -> OrderedFloat<f64> {
> OrderedFloat::from(3.14159_f64) }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)