Skip to content

Commit fe2d0b6

Browse files
committed
Rust: Autoformat.
1 parent 194f967 commit fe2d0b6

File tree

1 file changed

+6
-3
lines changed
  • rust/ql/lib/codeql/rust/frameworks/stdlib

1 file changed

+6
-3
lines changed

rust/ql/lib/codeql/rust/frameworks/stdlib/Env.qll

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ private import codeql.rust.Concepts
1010
*/
1111
private class StdEnvArgs extends CommandLineArgsSource::Range {
1212
StdEnvArgs() {
13-
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() = ["crate::env::args", "crate::env::args_os"]
13+
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() =
14+
["crate::env::args", "crate::env::args_os"]
1415
}
1516
}
1617

@@ -19,7 +20,8 @@ private class StdEnvArgs extends CommandLineArgsSource::Range {
1920
*/
2021
private class StdEnvDir extends CommandLineArgsSource::Range {
2122
StdEnvDir() {
22-
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() = ["crate::env::current_dir", "crate::env::current_exe", "crate::env::home_dir"]
23+
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() =
24+
["crate::env::current_dir", "crate::env::current_exe", "crate::env::home_dir"]
2325
}
2426
}
2527

@@ -28,6 +30,7 @@ private class StdEnvDir extends CommandLineArgsSource::Range {
2830
*/
2931
private class StdEnvVar extends EnvironmentSource::Range {
3032
StdEnvVar() {
31-
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() = ["crate::env::var", "crate::env::var_os", "crate::env::vars", "crate::env::vars_os"]
33+
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() =
34+
["crate::env::var", "crate::env::var_os", "crate::env::vars", "crate::env::vars_os"]
3235
}
3336
}

0 commit comments

Comments
 (0)