Skip to content

Commit

Permalink
Rust: Autoformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffw0 committed Nov 22, 2024
1 parent 194f967 commit fe2d0b6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rust/ql/lib/codeql/rust/frameworks/stdlib/Env.qll
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ private import codeql.rust.Concepts
*/
private class StdEnvArgs extends CommandLineArgsSource::Range {
StdEnvArgs() {
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() = ["crate::env::args", "crate::env::args_os"]
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() =
["crate::env::args", "crate::env::args_os"]
}
}

Expand All @@ -19,7 +20,8 @@ private class StdEnvArgs extends CommandLineArgsSource::Range {
*/
private class StdEnvDir extends CommandLineArgsSource::Range {
StdEnvDir() {
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() = ["crate::env::current_dir", "crate::env::current_exe", "crate::env::home_dir"]
this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() =
["crate::env::current_dir", "crate::env::current_exe", "crate::env::home_dir"]
}
}

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

0 comments on commit fe2d0b6

Please sign in to comment.