bug fixing and deploy and build diagnostics
This commit is contained in:
@@ -137,14 +137,6 @@ pub enum ManifestDescription {
|
||||
Detailed { short: String, long: String },
|
||||
}
|
||||
|
||||
impl ManifestDescription {
|
||||
pub fn short(&self) -> &str {
|
||||
match self {
|
||||
Self::Simple(s) => s,
|
||||
Self::Detailed { short, .. } => short,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A discovered marketplace app with trust scoring.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@@ -507,11 +499,11 @@ async fn load_or_create_keys(identity_dir: &Path) -> Result<nostr_sdk::prelude::
|
||||
#[cfg(unix)]
|
||||
{
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
let sp = secret_path.clone();
|
||||
tokio::task::spawn_blocking(move || {
|
||||
std::fs::set_permissions(sp, std::fs::Permissions::from_mode(0o600))
|
||||
})
|
||||
.await??;
|
||||
tokio::fs::set_permissions(
|
||||
&secret_path,
|
||||
std::fs::Permissions::from_mode(0o600),
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
Ok(keys)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user