Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit fe63390

Browse files
committed
Use rustfmt's Edition::Edition2021.
1 parent 2cad2d7 commit fe63390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rls/src/actions/requests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ fn reformat(
696696
let edition = match edition {
697697
Edition::Edition2015 => RustfmtEdition::Edition2015,
698698
Edition::Edition2018 => RustfmtEdition::Edition2018,
699-
Edition::Edition2021 => RustfmtEdition::Edition2018, // FIXME: Update to 2021 when rustfmt supports that.
699+
Edition::Edition2021 => RustfmtEdition::Edition2021,
700700
};
701701
config.set().edition(edition);
702702
trace!("Detected edition {:?} for file `{}`", edition, path.display());

0 commit comments

Comments
 (0)