+1 for this suggestio.

Chao Sun <sunc...@apache.org> 于 2019年1月26日周六 上午2:39写道:

> Hi Neville, there's no limit today: you'll need to add
>
> max_width = 90
> comment_width = 90
>
> to rustfmt.toml to limit both source code and comment to 90 characters.
>
> Chao
>
> On Fri, Jan 25, 2019 at 10:34 AM Neville Dipale <nevilled...@gmail.com>
> wrote:
>
> > Hi Chao,
> >
> > What's the current limit? I just ran rustfmt, and seems like it's not
> > reformatting at 100 characters. I support changing whatever the current
> > width is to 90 characters.
> >
> > Regards
> > Neville
> >
> > On Fri, 25 Jan 2019 at 19:49, Chao Sun <sunc...@apache.org> wrote:
> >
> > > Hi Rust developers,
> > >
> > > Just want to know if anyone like the idea to restrict the line width to
> > 90
> > > characters for Rust, similar to the C++ coding style. Personally I
> found
> > it
> > > helpful when you need to keep multiple windows in a monitor. This can
> > > easily be enforced via rustfmt. If there's no objection, I can open a
> > JIRA
> > > for this and apply the change to the existing codebase.
> > >
> > > Thanks,
> > > Chao
> > >
> >
>

Reply via email to