Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Housekeeping: Make some Ghci methods private #111

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ghci/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ impl Ghci {
/// Sync the input and output streams of this `ghci` session. This will block until all input
/// written to the `ghci` process's stdin has been read and processed.
#[instrument(skip_all, level = "debug")]
pub async fn sync(&mut self) -> miette::Result<()> {
async fn sync(&mut self) -> miette::Result<()> {
let (sentinel, receiver) = SyncSentinel::new(&self.sync_count);
self.stdin.sync(&mut self.stdout, sentinel).await?;
receiver.await.into_diagnostic()?;
Expand All @@ -446,7 +446,7 @@ impl Ghci {

/// Run the user provided test command.
#[instrument(skip_all, level = "debug")]
pub async fn test(&mut self) -> miette::Result<()> {
async fn test(&mut self) -> miette::Result<()> {
self.stdin
.test(&mut self.stdout, &self.opts.hooks.test_ghci)
.await?;
Expand All @@ -455,7 +455,7 @@ impl Ghci {

/// Run the eval commands, if enabled.
#[instrument(skip_all, level = "debug")]
pub async fn eval(&mut self) -> miette::Result<()> {
async fn eval(&mut self) -> miette::Result<()> {
if !self.opts.enable_eval {
return Ok(());
}
Expand Down