Skip to content

Function calls format #2851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dineshadepu opened this issue Jul 18, 2018 · 1 comment
Closed

Function calls format #2851

dineshadepu opened this issue Jul 18, 2018 · 1 comment

Comments

@dineshadepu
Copy link

Hello all,

I am using RustFmt for code refactor. I have an issue with function calls with many arguments.
Say, I have a function

linear_viscoelastic_model_dem_other(                                                                                                                                         
            &mut grains,                                                                                                                                                             
            &mut hopper,                                                                                                                                                             
            1e7,                                                                                                                                                                     
            0.0,                                                                                                                                                                     
            dt,                                                                                                                                                                      
            stage2,                                                                                                                                                                  
            &grid,                                                                                                                                                                   
            dim,
 );    

I want this to be

linear_viscoelastic_mode_dem_other(
         &mut grains, &mut hopper, 1e7, 0.0,
         dt, stage2, &grid, dim);
@nrc
Copy link
Member

nrc commented Jul 19, 2018

Please see the discussion in rust-lang/style-team#65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants