Skip to content

Commit c9632fa

Browse files
committed
fix: wrong version of xcodebuild + more unstable code removal
1 parent b6432a8 commit c9632fa

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ shell-words = { version = "1.1.0", optional = true }
8989
# Other
9090
mlua = { version = "0.7.4", features = ["lua51", "vendored"], optional = true }
9191
bsp-server = { version = "0.1.*", optional = true }
92-
xcodebuild = { version = "0.1.7", optional = true, features = ["tracing"] }
92+
xcodebuild = { version = "0.1.8", optional = true, features = ["tracing"] }
9393

9494
# Proc feature: processes, processors, disks, components and networks (sysinfo = "0.23.5")
9595
libproc = { version = "0.12.0", optional = true }

src/daemon/requests.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,20 @@ convertable!(Register);
4848
convertable!(RenameFile);
4949
convertable!(Drop);
5050

51-
#[derive(
52-
Default, Clone, Debug, serde::Serialize, serde::Deserialize, strum::Display, strum::EnumString,
53-
)]
51+
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, strum::Display, strum::EnumString)]
5452

5553
pub enum RequestOps {
5654
Watch,
5755
Stop,
58-
#[default]
5956
Once,
6057
}
6158

59+
impl Default for RequestOps {
60+
fn default() -> Self {
61+
Self::Once
62+
}
63+
}
64+
6265
impl RequestOps {
6366
/// Returns `true` if the request kind is [`Watch`].
6467
///

src/nvim/buffer.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
use serde::{Deserialize, Serialize};
22

3-
#[derive(Default, Clone, Debug, strum::EnumString, Serialize, Deserialize)]
3+
#[derive(Clone, Debug, strum::EnumString, Serialize, Deserialize)]
44
#[strum(ascii_case_insensitive)]
55
pub enum BufferDirection {
6-
#[default]
76
Default,
87
Vertical,
98
Horizontal,
109
TabEdit,
1110
}
1211

12+
impl Default for BufferDirection {
13+
fn default() -> Self {
14+
Self::Default
15+
}
16+
}
17+
1318
#[cfg(feature = "daemon")]
1419
impl BufferDirection {
1520
pub fn to_nvim_command(&self, bufnr: i64) -> String {

src/watch/event.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ use std::{
99
};
1010
use wax::Any;
1111

12-
#[derive(Default)]
1312
pub enum EventKind {
14-
#[default]
1513
None,
1614
FileCreated,
1715
FolderCreated,
@@ -22,6 +20,12 @@ pub enum EventKind {
2220
Other(NotifyEventKind),
2321
}
2422

23+
impl Default for EventKind {
24+
fn default() -> Self {
25+
Self::None
26+
}
27+
}
28+
2529
#[derive(Default)]
2630
pub struct Event {
2731
path: PathBuf,

src/watch/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl WatchService {
156156
let key = watchable.to_string();
157157
info!(r#"[WatchService] add("{key}")"#);
158158

159-
let other = self.listeners.insert(key, box (watchable));
159+
let other = self.listeners.insert(key, Box::new(watchable));
160160
if let Some(watchable) = other {
161161
let key = watchable.to_string();
162162
error!("[WatchService] Watchable with key `{key}` already exists!")

0 commit comments

Comments
 (0)