tools/lint/rustfmt.yml
author Masayuki Nakano <masayuki@d-toybox.com>
Thu, 02 Feb 2023 05:09:15 +0000
changeset 651452 20512741e7b60f3f6791002d8311d681f9242e68
parent 647691 c76443d7cf193f9c05757adaf866bb9231fccb38
permissions -rw-r--r--
Bug 1812170 - Make `HTMLEditor::ClearStyleAt` should return `pointToPutCaret` if next node of first split is not split r=m_kato The new path added in bug 1807829 hits the odd result case of `ClearStyleAt`. `pointToPutCaret` may be updated if the preceding split occurs. Therefore, it should be returned if it does not split next nodes after the first split instead of returning unset point (because of not splitting the point, `unwrappedSplitNodeResult.AtSplitPoint` may return unset point, therefore, it may return unset point in the case). Additionally, I forgot to split delete `SplitNodeResult::mCaretPoint` in bug 1792654, and it causes `SplitNodeDeepWithTransaction` returns unset caret point. This patch fixes this bug too. Differential Revision: https://phabricator.services.mozilla.com/D168179

---
rust:
    description: Reformat rust
    min_rustfmt_version: 1.4.12
    include:
        - '.'
    exclude:
        - dom/webauthn/libudev-sys/
        - gfx/wr/peek-poke/
        - gfx/wr/webrender_build/
        - gfx/wr/wr_malloc_size_of/
        - media/mp4parse-rust/
        - servo/
        - '**/*.mako.rs'
    extensions:
        - rs
    support-files:
        - 'tools/lint/rust/**'
    type: external
    payload: rust:lint