Skip to content

Commit

Permalink
use to string()
Browse files Browse the repository at this point in the history
  • Loading branch information
oac1771 committed Nov 26, 2024
1 parent 5c7d706 commit 3b0eeb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/clis/requester/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ pub struct Config {

impl Default for Config {
fn default() -> Self {
let suri = var("SURI").unwrap_or(String::from("//Alice"));
let suri = var("SURI").unwrap_or("//Alice".to_string());
let artifact_file_path = var("ARTIFACT_FILE_PATH")
.unwrap_or(String::from("./target/ink/catalog/catalog.contract"));
.unwrap_or("./target/ink/catalog/catalog.contract".to_string());

let signer = Keypair::from_uri(&SecretUri::from_str(&suri).unwrap()).unwrap();
let url = var("URL").unwrap_or("ws://127.0.0.1:9944".to_string());
Expand Down
1 change: 0 additions & 1 deletion todo.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
make chain url parameter
refactor job runner to create task that has builder pattern to build up job and execute
so it can be in its own task::spawn()

Expand Down

0 comments on commit 3b0eeb5

Please sign in to comment.