Skip to content

Commit 86f6f7d

Browse files
[pre-commit.ci] pre-commit autoupdate (#73)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Philipp A. <flying-sheep@web.de>
1 parent 0ff414c commit 86f6f7d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v5.0.0
8+
rev: v6.0.0
99
hooks:
1010
- id: trailing-whitespace
1111
- id: end-of-file-fixer

parser/src/transforms/standard.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,10 @@ impl Transform for Pass3<'_> {
380380
&mut self,
381381
mut e: e::Reference,
382382
) -> 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-
}
383+
if e.extra().refuri.is_none()
384+
&& let Some(uri) = self.target_url(&e.extra().refname)
385+
{
386+
e.extra_mut().refuri = Some(uri.clone());
387387
}
388388
once(e.into())
389389
}

0 commit comments

Comments
 (0)