From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9984CCCA470 for ; Mon, 6 Oct 2025 07:04:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E937210E30A; Mon, 6 Oct 2025 07:04:43 +0000 (UTC) X-Greylist: delayed 469 seconds by postgrey-1.36 at gabe; Sun, 05 Oct 2025 21:38:55 UTC Received: from mail.treewalker.org (mail.treewalker.org [78.47.88.232]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9087210E2BB for ; Sun, 5 Oct 2025 21:38:55 +0000 (UTC) Received: from hyperion.localnet (unknown [IPv6:2a10:3781:5345:1:a81:e1dc:2665:ea0c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.treewalker.org (Postfix) with ESMTPSA id 8EB611FDC2; Sun, 5 Oct 2025 23:31:04 +0200 (CEST) From: Maarten ter Huurne To: Miguel Ojeda , Linus Torvalds , John Hubbard Cc: Dave Airlie , Miguel Ojeda , Sima Vetter , dri-devel , LKML Subject: Re: [git pull] drm for 6.18-rc1 Date: Sun, 05 Oct 2025 23:31:03 +0200 Message-ID: <3771775.lGaqSPkdTl@hyperion> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-Mailman-Approved-At: Mon, 06 Oct 2025 07:04:43 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Saturday 4 October 2025 03:53:34 CEST John Hubbard wrote: > The main complaint with rustfmt is that it is extremely twitchy and > unstable with respect to one-line, vs. multi-line output. > > *Especially* with "use" statements. The Black and Ruff formatting tools for Python use a "magic comma" rule that works well in practice: if the last item has a trailing comma, the items are guaranteed to be formatted multi-line, while if there is no trailing comma, single-line formatting is attempted. I couldn't find documentation of the feature itself, but there is a settings flag to turn it off that contains an example: https://docs.astral.sh/ruff/settings/#format_skip-magic-trailing-comma Bye, Maarten