Skip to content

Commit

Permalink
lint: fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed May 9, 2024
1 parent bf6dceb commit f614cc8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions api-server-rest/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub trait ApiHandler: Send {
}

// Build json response.
#[allow(dead_code)]
fn json_response(&self, json: String) -> Result<Response<Body>> {
Ok(Response::builder()
.status(StatusCode::OK)
Expand Down
2 changes: 1 addition & 1 deletion attestation-agent/attestation-agent/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use attester::{detect_tee_type, BoxedAttester};
pub use attester::InitdataResult;

pub mod config;
mod token;
pub mod token;

use log::{info, warn};
use token::*;
Expand Down
2 changes: 1 addition & 1 deletion image-rs/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub fn create_runtime_config(
// - Config.Labels
if let Some(labels2) = config.labels() {
annotations.extend(labels2.clone());
labels = labels2.clone();
labels.clone_from(labels2);
}
if !labels.contains_key(ANNOTATION_STOP_SIGNAL) {
if let Some(stop_signal) = config.stop_signal() {
Expand Down
2 changes: 1 addition & 1 deletion ocicrypt-rs/src/encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl EncLayerFinalizer {
let mut b64_annotations = String::new();
let anno = annotations.unwrap_or(&DEFAULT_ANNOTATION_MAP);
if let Some(key_annotations) = anno.get(annotations_id) {
b64_annotations = key_annotations.clone();
b64_annotations.clone_from(key_annotations);
}

let key_wrapper = get_key_wrapper(scheme)?;
Expand Down

0 comments on commit f614cc8

Please sign in to comment.