Skip to content

Commit

Permalink
Fix 'unnecessary qualification' warnings
Browse files Browse the repository at this point in the history
Newer versions of the rust compiler generates warnings when symbols are
over-specified.

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
  • Loading branch information
ansasaki committed May 8, 2024
1 parent 62fd152 commit c91fba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion keylime-agent/src/payloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ async fn run_encrypted_payload(
let action_file = unzipped.join("action_list");

if action_file.exists() {
let action_data = std::fs::read_to_string(&action_file)
let action_data = fs::read_to_string(&action_file)
.expect("unable to read action_list");

action_data
Expand Down
8 changes: 4 additions & 4 deletions keylime-agent/src/revocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ fn run_revocation_actions(
let action_file = unzipped.join("action_list");

if action_file.exists() {
action_data = std::fs::read_to_string(&action_file)
action_data = fs::read_to_string(&action_file)
.expect("unable to read action_list");

let file_actions = parse_list(&action_data)?;
Expand Down Expand Up @@ -528,7 +528,7 @@ mod tests {
env!("CARGO_MANIFEST_DIR"),
"/tests/unzipped/test_ok.json"
);
let json_str = std::fs::read_to_string(json_file).unwrap(); //#[allow_ci]
let json_str = fs::read_to_string(json_file).unwrap(); //#[allow_ci]
let json = serde_json::from_str(&json_str).unwrap(); //#[allow_ci]
let actions_dir =
&Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/actions/");
Expand Down Expand Up @@ -567,7 +567,7 @@ mod tests {
env!("CARGO_MANIFEST_DIR"),
"/tests/unzipped/test_err.json"
);
let json_str = std::fs::read_to_string(json_file).unwrap(); //#[allow_ci]
let json_str = fs::read_to_string(json_file).unwrap(); //#[allow_ci]
let json = serde_json::from_str(&json_str).unwrap(); //#[allow_ci]
let actions_dir =
&Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/actions/");
Expand Down Expand Up @@ -602,7 +602,7 @@ mod tests {
let revocation_actions = "local_action_stand_alone.py, local_action_rev_script1.py";
}
}
let json_str = std::fs::read_to_string(json_file).unwrap(); //#[allow_ci]
let json_str = fs::read_to_string(json_file).unwrap(); //#[allow_ci]
let json = serde_json::from_str(&json_str).unwrap(); //#[allow_ci]
let actions_dir =
&Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/actions/");
Expand Down

0 comments on commit c91fba3

Please sign in to comment.