We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
String::split_ascii_whitespace
1 parent e76ec87 commit c668e9eCopy full SHA for c668e9e
.github/workflows/main.yml
@@ -91,7 +91,7 @@ jobs:
91
steps:
92
- uses: actions/checkout@master
93
- name: Install Rust
94
- run: rustup update 1.31.0 --no-self-update && rustup default 1.31.0
+ run: rustup update 1.34.0 --no-self-update && rustup default 1.34.0
95
shell: bash
96
- run: cargo build
97
src/lib.rs
@@ -2154,9 +2154,8 @@ impl Build {
2154
fn envflags(&self, name: &str) -> Vec<String> {
2155
self.get_var(name)
2156
.unwrap_or(String::new())
2157
- .split(|c: char| c.is_whitespace())
2158
- .filter(|s| !s.is_empty())
2159
- .map(|s| s.to_string())
+ .split_ascii_whitespace()
+ .map(|slice| slice.to_string())
2160
.collect()
2161
}
2162
0 commit comments