Update rust edition & clippy fixes

main
shaunsingh 2 years ago
parent 130e15439a
commit e64b67a305

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

@ -1,11 +1,11 @@
[package]
name = "neovide-derive"
version = "0.1.0"
edition = "2018"
edition = "2021"
[lib]
proc-macro = true
[dependencies]
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))
.await
.ok();
nvim.execute_lua(&REGISTER_CLIPBOARD_PROVIDER_LUA, vec![])
nvim.execute_lua(REGISTER_CLIPBOARD_PROVIDER_LUA, vec![])
.await
.ok();
}

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

Loading…
Cancel
Save