clippy
This commit is contained in:
parent
206b9be6d7
commit
ade7248f55
@ -238,7 +238,7 @@ impl FunctionEntry {
|
|||||||
self.update_string(&*string);
|
self.update_string(&*string);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (func_edit_focus, changed, self.get_test_result());
|
(func_edit_focus, changed, self.get_test_result())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_test_result(&self) -> Option<String> { self.test_result.clone() }
|
pub fn get_test_result(&self) -> Option<String> { self.test_result.clone() }
|
||||||
@ -248,7 +248,7 @@ impl FunctionEntry {
|
|||||||
let output = crate::parsing::test_func(&processed_func);
|
let output = crate::parsing::test_func(&processed_func);
|
||||||
self.raw_func_str = raw_func_str.to_string();
|
self.raw_func_str = raw_func_str.to_string();
|
||||||
if output.is_some() {
|
if output.is_some() {
|
||||||
self.test_result = output.clone();
|
self.test_result = output;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
self.test_result = None;
|
self.test_result = None;
|
||||||
@ -266,9 +266,9 @@ impl FunctionEntry {
|
|||||||
self.integral = integral;
|
self.integral = integral;
|
||||||
if raw_func_str != self.get_func_raw() {
|
if raw_func_str != self.get_func_raw() {
|
||||||
self.update_string(raw_func_str);
|
self.update_string(raw_func_str);
|
||||||
return self.get_test_result();
|
self.get_test_result()
|
||||||
} else {
|
} else {
|
||||||
return None;
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user