mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-04 11:27:46 +03:00
Add Default to some structs
This commit is contained in:
parent
86102a651f
commit
8759dc7e33
2 changed files with 5 additions and 7 deletions
|
@ -6,11 +6,9 @@ use crate::{
|
||||||
pub use log::{error, info};
|
pub use log::{error, info};
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
net::{IpAddr, Ipv4Addr},
|
net::{IpAddr, Ipv4Addr, SocketAddr},
|
||||||
|
path::PathBuf,
|
||||||
process::Stdio,
|
process::Stdio,
|
||||||
};
|
|
||||||
use std::{
|
|
||||||
net::SocketAddr,
|
|
||||||
sync::{
|
sync::{
|
||||||
atomic::{AtomicU64, Ordering},
|
atomic::{AtomicU64, Ordering},
|
||||||
Arc,
|
Arc,
|
||||||
|
@ -160,7 +158,7 @@ impl Client {
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
info!("unhandled event");
|
info!("unhandled event {}", name);
|
||||||
// client_tx.send(Payload::Event(ev)).expect("Failed to send");
|
// client_tx.send(Payload::Event(ev)).expect("Failed to send");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ pub struct Checksum {
|
||||||
pub checksum: String,
|
pub checksum: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
|
#[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct Source {
|
pub struct Source {
|
||||||
pub name: Option<String>,
|
pub name: Option<String>,
|
||||||
|
@ -100,7 +100,7 @@ pub struct Source {
|
||||||
pub checksums: Option<Vec<Checksum>>,
|
pub checksums: Option<Vec<Checksum>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
|
#[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct SourceBreakpoint {
|
pub struct SourceBreakpoint {
|
||||||
pub line: usize,
|
pub line: usize,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue