Skip to content

Commit

Permalink
fix: PR suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Leigh McCulloch <[email protected]>
  • Loading branch information
willemneal and leighmcculloch authored Apr 23, 2024
1 parent d6da936 commit 734cc22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions cmd/soroban-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ cargo_metadata = "0.15.4"
pathdiff = "0.2.1"
dotenvy = "0.15.7"
directories = { workspace = true }
# For unique identifiers
ulid.workspace = true
# For unique identifiers
ulid.features = ["serde"]
ulid = { workspace = true, features = ["serde"] }
strum = "0.17.1"
strum_macros = "0.17.1"
gix = { version = "0.58.0", default-features = false, features = [
Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/cache/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ pub enum Error {
#[group(skip)]
pub struct Cmd {
/// ULID of the cache entry
#[arg(long, visible_alias = "id")]
ulid: String,
#[arg(long)]
id: String,
#[arg(long)]
output: Option<OutputType>,
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/config/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::xdr::{self, WriteXdr};
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("Failed to find project directories")]
FiledToFindProjectDirs,
FailedToFindProjectDirs,
#[error(transparent)]
Io(#[from] std::io::Error),
#[error(transparent)]
Expand All @@ -27,7 +27,7 @@ pub const XDG_DATA_HOME: &str = "XDG_DATA_HOME";
pub fn project_dir() -> Result<directories::ProjectDirs, Error> {
std::env::var(XDG_DATA_HOME)
.map_or_else(
|_| ProjectDirs::from("com", "stellar", "soroban-cli"),
|_| ProjectDirs::from("com", "stellar", "stellar-cli"),
|data_home| ProjectDirs::from_path(std::path::PathBuf::from(data_home)),
)
.ok_or(Error::FiledToFindProjectDirs)
Expand Down

0 comments on commit 734cc22

Please sign in to comment.