mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-30 15:55:04 +08:00
fix: use to_owned()
This commit is contained in:
@@ -88,7 +88,7 @@ impl MarfedKV {
|
||||
) -> InterpreterResult<MarfedKV> {
|
||||
let marf = MarfedKV::setup_db(path_str, false, marf_opts)?;
|
||||
let chain_tip = match miner_tip {
|
||||
Some(ref miner_tip) => *miner_tip.clone(),
|
||||
Some(miner_tip) => miner_tip.to_owned(),
|
||||
None => StacksBlockId::sentinel(),
|
||||
};
|
||||
|
||||
@@ -102,7 +102,7 @@ impl MarfedKV {
|
||||
) -> InterpreterResult<MarfedKV> {
|
||||
let marf = MarfedKV::setup_db(path_str, true, marf_opts)?;
|
||||
let chain_tip = match miner_tip {
|
||||
Some(ref miner_tip) => *miner_tip.clone(),
|
||||
Some(miner_tip) => miner_tip.to_owned(),
|
||||
None => StacksBlockId::sentinel(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user