Skip to content

Commit 864fb06

Browse files
Luciano BestiaLuciano Bestia
authored andcommitted
rustfmt 1.4.30-stable
1 parent 790bda1 commit 864fb06

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

crates/parser/src/grammar/params.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,12 @@ fn opt_self_param(p: &mut Parser, m: Marker) {
169169
let la1 = p.nth(1);
170170
let la2 = p.nth(2);
171171
let la3 = p.nth(3);
172-
if !matches!((p.current(), la1, la2, la3),
173-
(T![&], T![self], _, _)
174-
| (T![&], T![mut], T![self], _)
175-
| (T![&], LIFETIME_IDENT, T![self], _)
176-
| (T![&], LIFETIME_IDENT, T![mut], T![self])
172+
if !matches!(
173+
(p.current(), la1, la2, la3),
174+
(T![&], T![self], _, _)
175+
| (T![&], T![mut], T![self], _)
176+
| (T![&], LIFETIME_IDENT, T![self], _)
177+
| (T![&], LIFETIME_IDENT, T![mut], T![self])
177178
) {
178179
return m.abandon(p);
179180
}

crates/rust-analyzer/src/to_proto.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,8 @@ pub(crate) fn url_from_abs_path(path: &Path) -> lsp_types::Url {
516516
assert!(path.is_absolute());
517517
let url = lsp_types::Url::from_file_path(path).unwrap();
518518
match path.components().next() {
519-
Some(path::Component::Prefix(prefix)) if matches!(prefix.kind(), path::Prefix::Disk(_) | path::Prefix::VerbatimDisk(_)) =>
519+
Some(path::Component::Prefix(prefix))
520+
if matches!(prefix.kind(), path::Prefix::Disk(_) | path::Prefix::VerbatimDisk(_)) =>
520521
{
521522
// Need to lowercase driver letter
522523
}

0 commit comments

Comments
 (0)