Skip to content

Commit

Permalink
Fix KBS AS build warning
Browse files Browse the repository at this point in the history
This introduces a compiler feature check for `as` when importing
`sync::Arc`. This removes the `unused_imports` warning when building
as specified in #419.

Resolves: #419

Signed-off-by: Larry Dewey <[email protected]>
  • Loading branch information
larrydewey authored and Xynnn007 committed Jun 18, 2024
1 parent 0af1601 commit 0b61fab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kbs/src/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ use jwt_simple::prelude::Ed25519PublicKey;
#[cfg(feature = "resource")]
use resource::RepositoryConfig;
use semver::{BuildMetadata, Prerelease, Version, VersionReq};
use std::path::PathBuf;
use std::{net::SocketAddr, sync::Arc};
#[cfg(feature = "as")]
use std::sync::Arc;
use std::{net::SocketAddr, path::PathBuf};
#[cfg(feature = "resource")]
use token::AttestationTokenVerifierConfig;

Expand Down

0 comments on commit 0b61fab

Please sign in to comment.