Skip to content

Commit 634e631

Browse files
Fix trussed imports
1 parent 4b8191f commit 634e631

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/backend.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ use trussed::{
1414
key::{Kind, Secrecy},
1515
platform::Platform,
1616
serde_extensions::ExtensionImpl,
17-
service::{Keystore, ServiceResources},
18-
store::filestore::Filestore,
19-
types::{CoreContext, Location, PathBuf},
20-
Bytes,
17+
service::ServiceResources,
18+
store::{filestore::Filestore, keystore::Keystore},
19+
types::{Bytes, CoreContext, Location, PathBuf},
2120
};
2221

2322
use crate::{

src/backend/data.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ use core::ops::Deref;
55

66
use chacha20poly1305::ChaCha8Poly1305;
77
use hmac::{Hmac, Mac};
8+
use rand_core::{CryptoRng, RngCore};
89
use serde::{Deserialize, Serialize};
910
use serde_byte_array::ByteArray;
1011
use sha2::{Digest as _, Sha256};
1112
use subtle::ConstantTimeEq as _;
1213
use trussed::{
13-
platform::{CryptoRng, RngCore},
1414
store::filestore::Filestore,
15-
types::{Location, PathBuf},
16-
Bytes,
15+
types::{Bytes, Location, PathBuf},
1716
};
1817

1918
use super::Error;
@@ -515,7 +514,7 @@ pub(crate) fn get_app_salt<S: Filestore, R: CryptoRng + RngCore>(
515514
pub(crate) fn delete_app_salt<S: Filestore>(
516515
fs: &mut S,
517516
location: Location,
518-
) -> Result<(), trussed::Error> {
517+
) -> Result<(), trussed::error::Error> {
519518
if fs.exists(&app_salt_path(), location) {
520519
fs.remove_file(&app_salt_path(), location)
521520
} else {

0 commit comments

Comments
 (0)