let remaining = snippet[status.line_start..subslice.len() + offset].trim();
if !remaining.is_empty() {
+ self.push_str(&self.block_indent.to_string(self.config));
self.push_str(remaining);
status.line_start = subslice.len() + offset;
}
--- /dev/null
+impl Struct {
+ /// Documentation for `foo`
+ #[rustfmt::skip] // comment on why use a skip here
+ pub fn foo(&self) {}
+}
+
+impl Struct {
+ /// Documentation for `foo`
+ #[rustfmt::skip] // comment on why use a skip here
+ pub fn foo(&self) {}
+}
+
+/// Documentation for `Struct`
+#[rustfmt::skip] // comment
+impl Struct {
+ /// Documentation for `foo`
+ #[rustfmt::skip] // comment on why use a skip here
+ pub fn foo(&self) {}
+}
--- /dev/null
+impl Struct {
+ /// Documentation for `foo`
+ #[rustfmt::skip] // comment on why use a skip here
+ pub fn foo(&self) {}
+}
+
+impl Struct {
+ /// Documentation for `foo`
+ #[rustfmt::skip] // comment on why use a skip here
+ pub fn foo(&self) {}
+}
+
+/// Documentation for `Struct`
+#[rustfmt::skip] // comment
+impl Struct {
+ /// Documentation for `foo`
+ #[rustfmt::skip] // comment on why use a skip here
+ pub fn foo(&self) {}
+}