Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
chanheec committed Apr 3, 2024
1 parent da0f19d commit 493d338
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ Proof action is an **experimental** feature to assist developers debug proof fai
### Prerequisite
* "4. Running Verus in VS Code (optional)"
* [verusfmt](https://github.com/verus-lang/verusfmt)
You can conveniently install verusfmt using the following
You can install `verusfmt` using the following
```
cargo install verusfmt --locked
```
You can also use `which verusfmt` to get the absolute path to it.


### Configuration
Expand All @@ -157,7 +158,7 @@ The "settings" in the `.code-workspace` file need additional configuration to gi
}
```

The final configuration file might look like the following.
The final configuration for `settings` might look like the following.

```json
"settings": {
Expand Down
8 changes: 4 additions & 4 deletions crates/flycheck/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]

use std::{
fmt, io,
process::{ChildStderr, ChildStdout, Command, Stdio},
time::Duration, path::Path,
fmt, io, path::Path, process::{ChildStderr, ChildStdout, Command, Stdio}, time::Duration
};

use command_group::{CommandGroup, GroupChild};
Expand Down Expand Up @@ -262,7 +260,7 @@ impl FlycheckActor {
match CargoHandle::spawn(command) {
Ok(cargo_handle) => {
tracing::error!(
"did restart Verus"
"did restart Verus"
);

self.cargo_handle = Some(cargo_handle);
Expand Down Expand Up @@ -550,8 +548,10 @@ struct CargoHandle {

impl CargoHandle {
fn spawn(mut command: Command) -> std::io::Result<CargoHandle> {
dbg!("spawn from CargoHandle");
command.stdout(Stdio::piped()).stderr(Stdio::piped()).stdin(Stdio::null());
let mut child = command.group_spawn().map(JodGroupChild)?;
dbg!("finished executing command");

let stdout = child.0.inner().stdout.take().unwrap();
let stderr = child.0.inner().stderr.take().unwrap();
Expand Down

0 comments on commit 493d338

Please sign in to comment.