1 parent 0ff414c commit 86f6f7dCopy full SHA for 86f6f7d
2 files changed
.pre-commit-config.yaml
@@ -5,7 +5,7 @@ ci:
5
6
repos:
7
- repo: https://github.com/pre-commit/pre-commit-hooks
8
- rev: v5.0.0
+ rev: v6.0.0
9
hooks:
10
- id: trailing-whitespace
11
- id: end-of-file-fixer
parser/src/transforms/standard.rs
@@ -380,10 +380,10 @@ impl Transform for Pass3<'_> {
380
&mut self,
381
mut e: e::Reference,
382
) -> impl Iterator<Item = c::TextOrInlineElement> {
383
- if e.extra().refuri.is_none() {
384
- if let Some(uri) = self.target_url(&e.extra().refname) {
385
- e.extra_mut().refuri = Some(uri.clone());
386
- }
+ if e.extra().refuri.is_none()
+ && let Some(uri) = self.target_url(&e.extra().refname)
+ {
+ e.extra_mut().refuri = Some(uri.clone());
387
}
388
once(e.into())
389
0 commit comments