merge upstream/unstable
This commit is contained in:
@@ -189,7 +189,7 @@ impl ValidatorDefinitions {
|
||||
.write(true)
|
||||
.read(true)
|
||||
.create_new(false)
|
||||
.open(&config_path)
|
||||
.open(config_path)
|
||||
.map_err(Error::UnableToOpenFile)?;
|
||||
serde_yaml::from_reader(file).map_err(Error::UnableToParseFile)
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ impl<'a> Builder<'a> {
|
||||
if path.exists() {
|
||||
return Err(Error::DepositDataAlreadyExists(path));
|
||||
} else {
|
||||
let hex = format!("0x{}", hex::encode(&deposit_data));
|
||||
let hex = format!("0x{}", hex::encode(deposit_data));
|
||||
File::options()
|
||||
.write(true)
|
||||
.read(true)
|
||||
|
||||
Reference in New Issue
Block a user