Update rust edition & clippy fixes

main
shaunsingh 2 years ago
parent 130e15439a
commit e64b67a305

@ -2,7 +2,7 @@
name = "neovide" name = "neovide"
version = "0.9.0" version = "0.9.0"
authors = ["keith <keith@the-simmons.net>"] authors = ["keith <keith@the-simmons.net>"]
edition = "2018" edition = "2021"
build = "build.rs" build = "build.rs"
description = "Neovide: No Nonsense Neovim Gui" description = "Neovide: No Nonsense Neovim Gui"
repository = "https://github.com/neovide/neovide" repository = "https://github.com/neovide/neovide"

@ -1,11 +1,11 @@
[package] [package]
name = "neovide-derive" name = "neovide-derive"
version = "0.1.0" version = "0.1.0"
edition = "2018" edition = "2021"
[lib] [lib]
proc-macro = true proc-macro = true
[dependencies] [dependencies]
syn = "1.0" syn = "1.0"
quote = "1.0" quote = "1.0"

@ -53,7 +53,7 @@ pub async fn setup_neovide_remote_clipboard(nvim: &Neovim<TxWrapper>, neovide_ch
nvim.set_var("neovide_channel_id", Value::from(neovide_channel)) nvim.set_var("neovide_channel_id", Value::from(neovide_channel))
.await .await
.ok(); .ok();
nvim.execute_lua(&REGISTER_CLIPBOARD_PROVIDER_LUA, vec![]) nvim.execute_lua(REGISTER_CLIPBOARD_PROVIDER_LUA, vec![])
.await .await
.ok(); .ok();
} }

@ -86,14 +86,14 @@ pub fn save_window_geometry(
size: { size: {
window_settings window_settings
.remember_window_size .remember_window_size
.then(|| grid_size) .then_some(grid_size)
.flatten() .flatten()
.unwrap_or(DEFAULT_WINDOW_GEOMETRY) .unwrap_or(DEFAULT_WINDOW_GEOMETRY)
}, },
position: { position: {
window_settings window_settings
.remember_window_position .remember_window_position
.then(|| position) .then_some(position)
.flatten() .flatten()
.unwrap_or_default() .unwrap_or_default()
}, },

Loading…
Cancel
Save