Upgrade Rust toolchain to 1.84.0 (#15408)

This commit is contained in:
Micha Reiser 2025-01-11 09:51:58 +01:00 committed by GitHub
parent 2d82445794
commit c39ca8fe6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 36 additions and 45 deletions

View file

@ -85,7 +85,7 @@ pub(crate) struct FormatLeadingAlternateBranchComments<'a> {
impl Format<PyFormatContext<'_>> for FormatLeadingAlternateBranchComments<'_> {
fn fmt(&self, f: &mut PyFormatter) -> FormatResult<()> {
if self.last_node.map_or(false, |preceding| {
if self.last_node.is_some_and(|preceding| {
should_insert_blank_line_after_class_in_stub_file(preceding, None, f.context())
}) {
write!(f, [empty_line(), leading_comments(self.comments)])?;