mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Rust 1.73 (#8007)
This commit is contained in:
parent
d6a4283003
commit
2c2ebf952a
9 changed files with 13 additions and 16 deletions
|
@ -286,11 +286,11 @@ impl<'fmt, 'buf> DisplayVisitor<'fmt, 'buf> {
|
|||
|
||||
impl Visit for DisplayVisitor<'_, '_> {
|
||||
fn record_set(&mut self, name: &str, _: OptionSet) {
|
||||
self.result = self.result.and_then(|_| writeln!(self.f, "{name}"));
|
||||
self.result = self.result.and_then(|()| writeln!(self.f, "{name}"));
|
||||
}
|
||||
|
||||
fn record_field(&mut self, name: &str, field: OptionField) {
|
||||
self.result = self.result.and_then(|_| {
|
||||
self.result = self.result.and_then(|()| {
|
||||
write!(self.f, "{name}")?;
|
||||
|
||||
if field.deprecated.is_some() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue