1
1
error: this will panic at run-time if the environment variable doesn't exist at compile-time
2
2
--> $DIR/option_env_unwrap.rs:17:13
3
3
|
4
- LL | let _ = option_env!("HOME ").unwrap();
4
+ LL | let _ = option_env!("PATH ").unwrap();
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::option-env-unwrap` implied by `-D warnings`
@@ -10,7 +10,7 @@ LL | let _ = option_env!("HOME").unwrap();
10
10
error: this will panic at run-time if the environment variable doesn't exist at compile-time
11
11
--> $DIR/option_env_unwrap.rs:18:13
12
12
|
13
- LL | let _ = option_env!("HOME ").expect("environment variable HOME isn't set");
13
+ LL | let _ = option_env!("PATH ").expect("environment variable PATH isn't set");
14
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
15
|
16
16
= help: consider using the `env!` macro instead
@@ -21,7 +21,7 @@ error: this will panic at run-time if the environment variable doesn't exist at
21
21
LL | option_env!($env).unwrap()
22
22
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
23
23
...
24
- LL | let _ = option_env_unwrap!("HOME ");
24
+ LL | let _ = option_env_unwrap!("PATH ");
25
25
| -------------------------- in this macro invocation
26
26
|
27
27
= help: consider using the `env!` macro instead
@@ -33,7 +33,7 @@ error: this will panic at run-time if the environment variable doesn't exist at
33
33
LL | option_env!($env).expect($message)
34
34
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35
35
...
36
- LL | let _ = option_env_unwrap!("HOME ", "environment variable HOME isn't set");
36
+ LL | let _ = option_env_unwrap!("PATH ", "environment variable PATH isn't set");
37
37
| ----------------------------------------------------------------- in this macro invocation
38
38
|
39
39
= help: consider using the `env!` macro instead
@@ -42,7 +42,7 @@ LL | let _ = option_env_unwrap!("HOME", "environment variable HOME isn't set
42
42
error: this will panic at run-time if the environment variable doesn't exist at compile-time
43
43
--> $DIR/option_env_unwrap.rs:21:13
44
44
|
45
- LL | let _ = option_env_unwrap_external!("HOME ");
45
+ LL | let _ = option_env_unwrap_external!("PATH ");
46
46
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
47
|
48
48
= help: consider using the `env!` macro instead
@@ -51,7 +51,7 @@ LL | let _ = option_env_unwrap_external!("HOME");
51
51
error: this will panic at run-time if the environment variable doesn't exist at compile-time
52
52
--> $DIR/option_env_unwrap.rs:22:13
53
53
|
54
- LL | let _ = option_env_unwrap_external!("HOME ", "environment variable HOME isn't set");
54
+ LL | let _ = option_env_unwrap_external!("PATH ", "environment variable PATH isn't set");
55
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
56
|
57
57
= help: consider using the `env!` macro instead
0 commit comments