prettyplease
Advanced tools
| { | ||
| "git": { | ||
| "sha1": "d4875363f4b6da5911aaa74735439002ad990bb8" | ||
| "sha1": "3819b845a0f195c848f47b75c30e8ad102fa833d" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+3
-3
@@ -13,3 +13,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "prettyplease" | ||
| version = "0.2.34" | ||
| version = "0.2.35" | ||
| dependencies = [ | ||
@@ -42,5 +42,5 @@ "indoc", | ||
| name = "syn" | ||
| version = "2.0.103" | ||
| version = "2.0.104" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "e4307e30089d6fd6aff212f2da3a1f9e32f3223b1f010fb09b7c95f90f3ca1e8" | ||
| checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40" | ||
| dependencies = [ | ||
@@ -47,0 +47,0 @@ "proc-macro2", |
+3
-3
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "prettyplease" | ||
| version = "0.2.34" | ||
| version = "0.2.35" | ||
| authors = ["David Tolnay <dtolnay@gmail.com>"] | ||
@@ -67,3 +67,3 @@ build = "build.rs" | ||
| [dependencies.syn] | ||
| version = "2.0.96" | ||
| version = "2.0.104" | ||
| features = ["full"] | ||
@@ -84,3 +84,3 @@ default-features = false | ||
| [dev-dependencies.syn] | ||
| version = "2.0.96" | ||
| version = "2.0.104" | ||
| features = [ | ||
@@ -87,0 +87,0 @@ "clone-impls", |
+6
-0
@@ -798,2 +798,5 @@ use crate::algorithm::{BreakToken, Printer}; | ||
| self.outer_attrs(&expr.attrs); | ||
| if !expr.attrs.is_empty() { | ||
| self.word("("); | ||
| } | ||
| if let Some(start) = &expr.start { | ||
@@ -815,2 +818,5 @@ let (left_prec, left_fixup) = | ||
| } | ||
| if !expr.attrs.is_empty() { | ||
| self.word(")"); | ||
| } | ||
| } | ||
@@ -817,0 +823,0 @@ |
+2
-1
@@ -526,3 +526,3 @@ use crate::classify; | ||
| } | ||
| Expr::Range(e) => match &e.end { | ||
| Expr::Range(e) if e.attrs.is_empty() => match &e.end { | ||
| Some(end) => { | ||
@@ -653,2 +653,3 @@ if fail_offset >= 2 { | ||
| | Expr::Path(_) | ||
| | Expr::Range(_) | ||
| | Expr::Repeat(_) | ||
@@ -655,0 +656,0 @@ | Expr::Struct(_) |
+1
-1
@@ -323,3 +323,3 @@ //! [![github]](https://github.com/dtolnay/prettyplease) [![crates-io]](https://crates.io/crates/prettyplease) [![docs-rs]](https://docs.rs/prettyplease) | ||
| #![doc(html_root_url = "https://docs.rs/prettyplease/0.2.34")] | ||
| #![doc(html_root_url = "https://docs.rs/prettyplease/0.2.35")] | ||
| #![allow( | ||
@@ -326,0 +326,0 @@ clippy::bool_to_int_with_if, |
Sorry, the diff of this file is not supported yet