aboutsummaryrefslogtreecommitdiff
path: root/alacritty
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2024-07-17 04:47:13 +0300
committerKirill Chibisov <contact@kchibisov.com>2024-07-17 11:02:31 +0300
commitf5e02862ffdcc579264ce85f11aed96732b257ff (patch)
tree4c6520c2c0ef1ef26cdf740b9fe7151ea1e7ba4d /alacritty
parent3504246c3f57769ca0528fe397e866a13c49f039 (diff)
downloadr-alacritty-f5e02862ffdcc579264ce85f11aed96732b257ff.tar.gz
r-alacritty-f5e02862ffdcc579264ce85f11aed96732b257ff.tar.bz2
r-alacritty-f5e02862ffdcc579264ce85f11aed96732b257ff.zip
Bump dependencies
Update winit and clap to latest versions.
Diffstat (limited to 'alacritty')
-rw-r--r--alacritty/Cargo.toml2
-rw-r--r--alacritty/src/cli.rs4
-rw-r--r--alacritty/src/display/hint.rs2
-rw-r--r--alacritty/src/input/mod.rs32
4 files changed, 20 insertions, 20 deletions
diff --git a/alacritty/Cargo.toml b/alacritty/Cargo.toml
index 1bc8f0fe..e8739049 100644
--- a/alacritty/Cargo.toml
+++ b/alacritty/Cargo.toml
@@ -39,7 +39,7 @@ serde_json = "1"
serde_yaml = "0.9.25"
toml = "0.8.2"
unicode-width = "0.1"
-winit = { version = "0.30.3", default-features = false, features = ["rwh_06", "serde"] }
+winit = { version = "0.30.4", default-features = false, features = ["rwh_06", "serde"] }
[build-dependencies]
gl_generator = "0.14.0"
diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs
index e7f2d3ef..803c1f8c 100644
--- a/alacritty/src/cli.rs
+++ b/alacritty/src/cli.rs
@@ -216,10 +216,10 @@ impl WindowIdentity {
/// Override the [`WindowIdentity`]'s fields with the [`WindowOptions`].
pub fn override_identity_config(&self, identity: &mut Identity) {
if let Some(title) = &self.title {
- identity.title = title.clone();
+ identity.title.clone_from(title);
}
if let Some(class) = &self.class {
- identity.class = class.clone();
+ identity.class.clone_from(class);
}
}
}
diff --git a/alacritty/src/display/hint.rs b/alacritty/src/display/hint.rs
index f118dbe0..a01a1d03 100644
--- a/alacritty/src/display/hint.rs
+++ b/alacritty/src/display/hint.rs
@@ -183,7 +183,7 @@ impl HintState {
/// Update the alphabet used for hint labels.
pub fn update_alphabet(&mut self, alphabet: &str) {
if self.alphabet != alphabet {
- self.alphabet = alphabet.to_owned();
+ alphabet.clone_into(&mut self.alphabet);
self.keys.clear();
}
}
diff --git a/alacritty/src/input/mod.rs b/alacritty/src/input/mod.rs
index 4900e26f..9f7074f4 100644
--- a/alacritty/src/input/mod.rs
+++ b/alacritty/src/input/mod.rs
@@ -1327,9 +1327,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: Duration::ZERO,
@@ -1343,9 +1343,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Right,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: Duration::ZERO,
@@ -1359,9 +1359,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Middle,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: Duration::ZERO,
@@ -1375,9 +1375,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::DoubleClick,
input_delay: Duration::ZERO,
@@ -1391,9 +1391,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: CLICK_THRESHOLD,
@@ -1407,9 +1407,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::TripleClick,
input_delay: Duration::ZERO,
@@ -1423,9 +1423,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Left,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: CLICK_THRESHOLD,
@@ -1439,9 +1439,9 @@ mod tests {
event: WindowEvent::MouseInput {
state: ElementState::Pressed,
button: MouseButton::Right,
- device_id: unsafe { DeviceId::dummy() },
+ device_id: DeviceId::dummy(),
},
- window_id: unsafe { WindowId::dummy() },
+ window_id: WindowId::dummy(),
},
end_state: ClickState::Click,
input_delay: Duration::ZERO,