Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy fixes #2614

Merged
merged 9 commits into from Apr 6, 2018

webrender: Don't use single character string with split.

  • Loading branch information
waywardmonkeys committed Apr 5, 2018
commit 672c1f824b245f8cfb4601b73206107de732a44c
@@ -174,7 +174,7 @@ fn parse_shader_source(source: String, base_path: &Option<PathBuf>, output: &mut

for (line_num, line) in source.lines().enumerate() {
if line.starts_with(SHADER_IMPORT) {
let imports = line[SHADER_IMPORT.len() ..].split(",");
let imports = line[SHADER_IMPORT.len() ..].split(',');

// For each import, get the source, and recurse.
for import in imports {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.