fmt
This commit is contained in:
@@ -1875,7 +1875,7 @@ impl MachineState {
|
||||
};
|
||||
|
||||
if path.extension().is_none() {
|
||||
if let Some(metadata) = file.metadata().ok() {
|
||||
if let Ok(metadata) = file.metadata() {
|
||||
if metadata.is_dir() {
|
||||
path.set_extension("pl");
|
||||
continue;
|
||||
|
||||
@@ -5629,7 +5629,7 @@ impl Machine {
|
||||
|
||||
#[inline(always)]
|
||||
pub(crate) fn inference_count(&mut self, count_var: HeapCellValue, count: Integer) {
|
||||
if let Some(value) = <&Integer as TryInto<i64>>::try_into(&count).ok() {
|
||||
if let Ok(value) = <&Integer as TryInto<i64>>::try_into(&count) {
|
||||
self.machine_st
|
||||
.unify_fixnum(Fixnum::build_with(value), count_var);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user