You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/oxc_formatter/src/formatter/trivia.rs
+10-24Lines changed: 10 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ use oxc_span::Span;
61
61
62
62
usecrate::write;
63
63
64
-
usesuper::{SourceText,prelude::*};
64
+
usesuper::prelude::*;
65
65
66
66
/// Returns true if:
67
67
/// - `next_comment` is Some, and
@@ -76,18 +76,12 @@ use super::{SourceText, prelude::*};
76
76
/// There isn't much documentation about this behavior, but it is mentioned on the JSDoc repo
77
77
/// for documentation: <https://github.com/jsdoc/jsdoc.github.io/issues/40>. Prettier also
78
78
/// implements the same behavior: <https://github.com/prettier/prettier/pull/13445/files#diff-3d5eaa2a1593372823589e6e55e7ca905f7c64203ecada0aa4b3b0cdddd5c3ddR160-R178>
79
-
#[expect(clippy::suspicious_operation_groupings)]
80
-
// `current.span.end == next.span.start` is correct, which checks whether the next comment starts exactly where the current comment ends.
0 commit comments