Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update client/chain-spec/src/chain_spec.rs
Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
gilescope and bkchr authored Oct 5, 2021
commit 9eaa166e10e7226819cba4db944e08ce556e7c90
2 changes: 1 addition & 1 deletion client/chain-spec/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl<G: RuntimeGenesis> GenesisSource<G> {
match self {
Self::File(path) => {
let file = File::open(path).map_err(|e| {
format!("Error opening spec file at `{}`: {}", &path.to_string_lossy(), e)
format!("Error opening spec file at `{}`: {}", path.display(), e)
})?;
let genesis: GenesisContainer<G> = json::from_reader(file)
.map_err(|e| format!("Error parsing spec file: {}", e))?;
Expand Down