Skip to content

Unwanted wrapping of link assignments #4933

@jnqnfe

Description

@jnqnfe

I've deliberately defined each link on individual lines, and I've deliberately ignored the typical max line length. rustfmt chooses to not ignore the max line length (debatably not so good) and worse, groups them all up into a single "paragraph".

-//! [`Introspector::get_sink_info_by_name()`]: crate::context::introspect::Introspector::get_sink_info_by_name
-//! [`SinkFlagSet::DECIBEL_VOLUME`]: crate::def::SinkFlagSet::DECIBEL_VOLUME
-//! [`SourceFlagSet::DECIBEL_VOLUME`]: crate::def::SourceFlagSet::DECIBEL_VOLUME
+//! [`Introspector::get_sink_info_by_name()`]:
+//! crate::context::introspect::Introspector::get_sink_info_by_name [`SinkFlagSet::DECIBEL_VOLUME`]:
+//! crate::def::SinkFlagSet::DECIBEL_VOLUME [`SourceFlagSet::DECIBEL_VOLUME`]:
+//! crate::def::SourceFlagSet::DECIBEL_VOLUME

Version string: rustfmt 1.4.37-stable (a178d03 2021-07-26)
Project: https://github.com/jnqnfe/pulse-binding-rust
Specific file: https://github.com/jnqnfe/pulse-binding-rust/blob/master/pulse-binding/src/volume.rs
Ran against the master branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions