Skip to content

Commit

Permalink
do changes to satisfy CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirr9 committed Dec 17, 2023
1 parent 0c0a019 commit ed2f885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ indent_size = false

[*.md]
trim_trailing_whitespace = false
indent_size = 2

[*.{yml,yaml}]
indent_size = 2
Expand Down
3 changes: 2 additions & 1 deletion src/config/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,10 @@ loggers:
}

#[cfg(windows)]
#[allow(dead_code)]
const LINE_ENDING: &'static str = "\r\n";
#[cfg(not(windows))]
#[allow(dead_code)]
const LINE_ENDING: &'static str = "\n";

#[test]
Expand All @@ -520,7 +522,6 @@ loggers:
let config_start =
sample_file.find(&config_start_string).unwrap() + config_start_string.len();
let config_end = sample_file.find(&config_end_string).unwrap();

let config_str = sample_file[config_start..config_end].trim();

let config = ::serde_yaml::from_str::<RawConfig>(config_str);
Expand Down

0 comments on commit ed2f885

Please sign in to comment.