mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 21:47:07 +04:00
Fix example compilation
This commit is contained in:
parent
8fbda0abaf
commit
54dc2f8107
@ -1,6 +1,6 @@
|
|||||||
use helix_dap::{events, Client, Event, Result, SourceBreakpoint};
|
use helix_dap::{events, Client, Event, Result, SourceBreakpoint};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::from_value;
|
use serde_json::{from_value, to_value};
|
||||||
use tokio::sync::mpsc::Receiver;
|
use tokio::sync::mpsc::Receiver;
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
|
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
|
||||||
@ -50,7 +50,7 @@ pub async fn main() -> Result<()> {
|
|||||||
program: "/tmp/godebug/main".to_owned(),
|
program: "/tmp/godebug/main".to_owned(),
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("launch: {:?}", client.launch(args).await);
|
println!("launch: {:?}", client.launch(to_value(args)?).await);
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
"breakpoints: {:#?}",
|
"breakpoints: {:#?}",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use helix_dap::{events, Client, Event, Result, SourceBreakpoint};
|
use helix_dap::{events, Client, Event, Result, SourceBreakpoint};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::from_value;
|
use serde_json::{from_value, to_value};
|
||||||
use tokio::sync::mpsc::Receiver;
|
use tokio::sync::mpsc::Receiver;
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
|
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
|
||||||
@ -50,7 +50,7 @@ pub async fn main() -> Result<()> {
|
|||||||
console: "internalConsole".to_owned(),
|
console: "internalConsole".to_owned(),
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("launch: {:?}", client.launch(args).await);
|
println!("launch: {:?}", client.launch(to_value(args)?).await);
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
"breakpoints: {:#?}",
|
"breakpoints: {:#?}",
|
||||||
|
Loading…
Reference in New Issue
Block a user