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
refactor(formatter): remove all unused code (#15941)
This PR aims to remove the global `#![allow(unused)]`.
There are a few main things that were done:
1. Removed all unused imports
2. Renamed the unused variable to add a `_` prefix
3. Removed unused statements
4. Marked `#[expect(unused)]` for some structs that are not sure if they would be used in the future
// Traverse into the most flat version because the content is guaranteed to expand when even
263
267
// the most flat version contains some content that forces a break.
@@ -376,10 +380,12 @@ pub trait FormatElements {
376
380
/// Returns the start tag of `kind` if:
377
381
/// * the last element is an end tag of `kind`.
378
382
/// * there's a matching start tag in this document (may not be true if this slice is an interned element and the `start` is in the document storing the interned element).
0 commit comments