Taylor Bockman 7 years ago
parent
commit
02638cd05a
  1. 4
      src/options.rs

4
src/options.rs

@ -93,7 +93,7 @@ impl EngineOption {
pub fn option_string(&self) -> String {
let mut option_data_string: String = String::new();
for (ref dt, ref eod) in self.option_data {
for (dt, eod) in self.option_data.iter() {
let dts = match *dt {
EngineOptionDataType::DefaultVal => "default",
EngineOptionDataType::Min => "min",
@ -104,7 +104,7 @@ impl EngineOption {
let res = match *eod {
EngineOptionData::Int(v) => v.to_string(),
EngineOptionData::Float(v) => v.to_string(),
EngineOptionData::Text(v) => v,
EngineOptionData::Text(ref v) => v.clone(),
};
option_data_string.push_str(&format!("{} {:?} ", dts, res));

Loading…
Cancel
Save