Skip to content

Commit c91fba3

Browse files
committed
Fix 'unnecessary qualification' warnings
Newer versions of the rust compiler generates warnings when symbols are over-specified. Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
1 parent 62fd152 commit c91fba3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

keylime-agent/src/payloads.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ async fn run_encrypted_payload(
222222
let action_file = unzipped.join("action_list");
223223

224224
if action_file.exists() {
225-
let action_data = std::fs::read_to_string(&action_file)
225+
let action_data = fs::read_to_string(&action_file)
226226
.expect("unable to read action_list");
227227

228228
action_data

keylime-agent/src/revocation.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ fn run_revocation_actions(
203203
let action_file = unzipped.join("action_list");
204204

205205
if action_file.exists() {
206-
action_data = std::fs::read_to_string(&action_file)
206+
action_data = fs::read_to_string(&action_file)
207207
.expect("unable to read action_list");
208208

209209
let file_actions = parse_list(&action_data)?;
@@ -528,7 +528,7 @@ mod tests {
528528
env!("CARGO_MANIFEST_DIR"),
529529
"/tests/unzipped/test_ok.json"
530530
);
531-
let json_str = std::fs::read_to_string(json_file).unwrap(); //#[allow_ci]
531+
let json_str = fs::read_to_string(json_file).unwrap(); //#[allow_ci]
532532
let json = serde_json::from_str(&json_str).unwrap(); //#[allow_ci]
533533
let actions_dir =
534534
&Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/actions/");
@@ -567,7 +567,7 @@ mod tests {
567567
env!("CARGO_MANIFEST_DIR"),
568568
"/tests/unzipped/test_err.json"
569569
);
570-
let json_str = std::fs::read_to_string(json_file).unwrap(); //#[allow_ci]
570+
let json_str = fs::read_to_string(json_file).unwrap(); //#[allow_ci]
571571
let json = serde_json::from_str(&json_str).unwrap(); //#[allow_ci]
572572
let actions_dir =
573573
&Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/actions/");
@@ -602,7 +602,7 @@ mod tests {
602602
let revocation_actions = "local_action_stand_alone.py, local_action_rev_script1.py";
603603
}
604604
}
605-
let json_str = std::fs::read_to_string(json_file).unwrap(); //#[allow_ci]
605+
let json_str = fs::read_to_string(json_file).unwrap(); //#[allow_ci]
606606
let json = serde_json::from_str(&json_str).unwrap(); //#[allow_ci]
607607
let actions_dir =
608608
&Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/actions/");

0 commit comments

Comments
 (0)