Skip to content

Commit e64b67a

Browse files
committed
Update rust edition & clippy fixes
1 parent 130e154 commit e64b67a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "neovide"
33
version = "0.9.0"
44
authors = ["keith <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
build = "build.rs"
77
description = "Neovide: No Nonsense Neovim Gui"
88
repository = "https://github.com/neovide/neovide"

neovide-derive/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "neovide-derive"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
[lib]
77
proc-macro = true
88

99
[dependencies]
1010
syn = "1.0"
11-
quote = "1.0"
11+
quote = "1.0"

src/bridge/setup.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub async fn setup_neovide_remote_clipboard(nvim: &Neovim<TxWrapper>, neovide_ch
5353
nvim.set_var("neovide_channel_id", Value::from(neovide_channel))
5454
.await
5555
.ok();
56-
nvim.execute_lua(&REGISTER_CLIPBOARD_PROVIDER_LUA, vec![])
56+
nvim.execute_lua(REGISTER_CLIPBOARD_PROVIDER_LUA, vec![])
5757
.await
5858
.ok();
5959
}

src/settings/window_geometry.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ pub fn save_window_geometry(
8686
size: {
8787
window_settings
8888
.remember_window_size
89-
.then(|| grid_size)
89+
.then_some(grid_size)
9090
.flatten()
9191
.unwrap_or(DEFAULT_WINDOW_GEOMETRY)
9292
},
9393
position: {
9494
window_settings
9595
.remember_window_position
96-
.then(|| position)
96+
.then_some(position)
9797
.flatten()
9898
.unwrap_or_default()
9999
},

0 commit comments

Comments
 (0)