main
tag: v0.1.0
tag: v0.10.0
tag: v0.11.0
tag: v0.12.0
tag: v0.13.0
tag: v0.14.0
tag: v0.15.0
tag: v0.16.0
tag: v0.16.1
tag: v0.17.0
tag: v0.17.1
tag: v0.18.0
tag: v0.19.0
tag: v0.2.0
tag: v0.20.0
tag: v0.21.0
tag: v0.21.1
tag: v0.22.0
tag: v0.22.1
tag: v0.23.0
tag: v0.24.0
tag: v0.25.0
tag: v0.25.1
tag: v0.26.0
tag: v0.27.0
tag: v0.28.0
tag: v0.29.0
tag: v0.3.0
tag: v0.30.0
tag: v0.30.1
tag: v0.31.0
tag: v0.32.0
tag: v0.33.0
tag: v0.34.0
tag: v0.35.0
tag: v0.35.1
tag: v0.36.0
tag: v0.37.0
tag: v0.38.0
tag: v0.39.0
tag: v0.4.0
tag: v0.40.0
tag: v0.41.0
tag: v0.42.0
tag: v0.43.0
tag: v0.44.0
tag: v0.45.0
tag: v0.46.0
tag: v0.47.0
tag: v0.48.0
tag: v0.49.0
tag: v0.5.0
tag: v0.5.1
tag: v0.51.0
tag: v0.52.0
tag: v0.54.0
tag: v0.55.0
tag: v0.57.0
tag: v0.58.0
tag: v0.59.0
tag: v0.59.1
tag: v0.59.2
tag: v0.6.0
tag: v0.60.0
tag: v0.61.0
tag: v0.62.0
tag: v0.63.0
tag: v0.64.0
tag: v0.65.0
tag: v0.66.0
tag: v0.67.0
tag: v0.68.0
tag: v0.69.0
tag: v0.7.0
tag: v0.70.0
tag: v0.70.1
tag: v0.70.2
tag: v0.71.0
tag: v0.72.0
tag: v0.73.0
tag: v0.74.0
tag: v0.74.2
tag: v0.75.0
tag: v0.75.1
tag: v0.76.0
tag: v0.77.0
tag: v0.8.0
tag: v0.9.0
tag: v0.9.1
Files
Commits
Tags
Notes
Issues
0.30.1: collapse the nested ifs in the rule walk
Three `if cond { if let ... }` pairs, which clippy reads as collapsible and
which are clearer as let-chains anyway. No behaviour change; the rule walk
produces the same rules.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
2 files changed,
+17 insertions,
-17 deletions
1
1
[package]
2
2
name = "makeover-webview"
3
-
version = "0.30.0"
3
+
version = "0.30.1"
4
4
edition = "2024"
5
5
# One copy of this renderer per dependency graph, enforced by cargo rather than
6
6
# by remembering. Two versions means the generated stylesheet and the emitted
179
179
let mut escaped = false;
180
180
// Keep the quotes in the body: a value is not a property name,
181
181
// and dropping them would join two declarations into one.
182
-
if blocks.last().copied().unwrap_or(false) {
183
-
if let Some((_, body)) = open.last_mut() {
184
-
body.push(quote);
185
-
}
182
+
if blocks.last().copied().unwrap_or(false)
183
+
&& let Some((_, body)) = open.last_mut()
184
+
{
185
+
body.push(quote);
186
186
}
187
187
for c in chars.by_ref() {
188
188
if escaped {
196
196
// The closing quote only. A value holding `;` or `:` would
197
197
// otherwise read as two declarations, and `url("a;b:c")` is a
198
198
// real thing an app writes.
199
-
if blocks.last().copied().unwrap_or(false) {
200
-
if let Some((_, body)) = open.last_mut() {
201
-
body.push(quote);
202
-
}
199
+
if blocks.last().copied().unwrap_or(false)
200
+
&& let Some((_, body)) = open.last_mut()
201
+
{
202
+
body.push(quote);
203
203
}
204
204
}
205
205
'{' => {
211
211
prelude.clear();
212
212
}
213
213
'}' => {
214
-
if blocks.pop().unwrap_or(false) {
215
-
if let Some(rule) = open.pop() {
216
-
out.push(rule);
217
-
}
214
+
if blocks.pop().unwrap_or(false)
215
+
&& let Some(rule) = open.pop()
216
+
{
217
+
out.push(rule);
218
218
}
219
219
prelude.clear();
220
220
}
221
221
_ => {
222
-
if blocks.last().copied().unwrap_or(false) {
223
-
if let Some((_, body)) = open.last_mut() {
224
-
body.push(c);
225
-
}
222
+
if blocks.last().copied().unwrap_or(false)
223
+
&& let Some((_, body)) = open.last_mut()
224
+
{
225
+
body.push(c);
226
226
} else if c == ';' {
227
227
prelude.clear();
228
228
} else {