@@ -727,7 +727,7 @@ pub struct WhitespaceCharacters {
727727impl Default for WhitespaceCharacters {
728728 fn default() -> Self {
729729 Self {
730− space: '·', // U+00B7
730+ space: '·', // U+00B7
731731 nbsp: '⍽', // U+237D
732732 tab: '→', // U+2192
733733 newline: '⏎', // U+23CE
@@ -755,12 +755,13 @@ impl Default for IndentGuidesConfig {
755755}
756756
757757/// Line ending configuration.
758−#[derive(Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
758+#[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
759759#[serde(rename_all = "lowercase")]
760760pub enum LineEndingConfig {
761761 /// The platform's native line ending.
762762 ///
763763 /// `crlf` on Windows, otherwise `lf`.
764+ #[default]
764765 Native,
765766 /// Line feed.
766767 LF,
@@ -777,12 +778,6 @@ pub enum LineEndingConfig {
777778 Nel,
778779}
779780
780−impl Default for LineEndingConfig {
781− fn default() -> Self {
782− LineEndingConfig::Native
783− }
784−}
785−
786781impl From<LineEndingConfig> for LineEnding {
787782 fn from(line_ending: LineEndingConfig) -> Self {
788783 match line_ending {