remove Term
This commit is contained in:
@@ -436,7 +436,7 @@ impl<'a, LS: LoadState<'a>> Loader<'a, LS> {
|
||||
|
||||
pub(super) fn try_term_to_tl(
|
||||
&mut self,
|
||||
term: Term,
|
||||
term: FocusedHeap,
|
||||
preprocessor: &mut Preprocessor,
|
||||
) -> Result<PredicateClause, SessionError> {
|
||||
let tl = preprocessor.try_term_to_tl(self, term)?;
|
||||
@@ -1164,7 +1164,8 @@ impl<'a, LS: LoadState<'a>> Loader<'a, LS> {
|
||||
let mut path_buf = PathBuf::from(&*filename.as_str());
|
||||
path_buf.set_extension("pl");
|
||||
|
||||
let file = File::open(&path_buf)?;
|
||||
let file = File::open(&path_buf)
|
||||
.map_err(|err| ParserError::IO(err, ParserErrorSrc::default()))?;
|
||||
|
||||
(
|
||||
Stream::from_file_as_input(
|
||||
@@ -1245,7 +1246,8 @@ impl<'a, LS: LoadState<'a>> Loader<'a, LS> {
|
||||
ModuleSource::File(filename) => {
|
||||
let mut path_buf = PathBuf::from(&*filename.as_str());
|
||||
path_buf.set_extension("pl");
|
||||
let file = File::open(&path_buf)?;
|
||||
let file = File::open(&path_buf)
|
||||
.map_err(|err| ParserError::IO(err, ParserErrorSrc::default()))?;
|
||||
|
||||
(
|
||||
Stream::from_file_as_input(
|
||||
|
||||
Reference in New Issue
Block a user