Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jun 12, 2022
1 parent c0d5b0c commit e3ae57a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/program/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
pub mod constants;
mod cursor;
mod lib;
#[allow(clippy::module_inception)]
mod program;
mod rw;
mod segs;
Expand Down
7 changes: 3 additions & 4 deletions src/program/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ where
/// # Errors
///
/// Checks requirement that the total number of libraries must not exceed [`LIBS_MAX_TOTAL`]
/// and [`Self::RUNTIME_MAX_TOTAL_LIBS`] - or returns [`Error::TooManyLibs`]
/// otherwise.
/// and `RUNTIME_MAX_TOTAL_LIBS` - or returns [`LibError::TooManyLibs`] otherwise.
///
/// Checks that the ISA used by the VM supports ISA extensions specified by the library and
/// returns [`Error::IsaNotSupported`] otherwise.
/// returns [`LibError::IsaNotSupported`] otherwise.
///
/// # Returns
///
Expand All @@ -130,6 +129,6 @@ where
pub fn entrypoint(&self) -> LibSite { self.entrypoint }

// TODO: Return error if the library is not known
/// Sets new entry point value (used when calling [`Runtime::main`])
/// Sets new entry point value (used when calling [`crate::Vm::run`])
pub fn set_entrypoint(&mut self, entrypoint: LibSite) { self.entrypoint = entrypoint; }
}
4 changes: 2 additions & 2 deletions src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ where
}

/// Executes the program starting from the provided entry point (set with
/// [`Runtime::set_entrypoint`] and [`Runtime::with`], or initialized to 0 offset of the
/// first used library if [`Runtime::new`] was used).
/// [`Program::set_entrypoint`] and [`Program::with`], or initialized to 0 offset of the
/// first used library if [`Program::new`] was used).
///
/// # Returns
///
Expand Down

0 comments on commit e3ae57a

Please sign in to comment.