Skip to content

Commit

Permalink
Fix some new clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyude committed Sep 13, 2024
1 parent b226dee commit 893f98d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nvim/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ pub fn start<'a>(
.arg("--cmd")
.arg("let g:GtkGuiLoaded = 1")
.arg("--cmd")
.arg(&format!(
.arg(format!(
"let &rtp.=',{}'",
env::var("NVIM_GTK_RUNTIME_PATH").unwrap_or_else(|_| env!("RUNTIME_PATH").into())
))
Expand Down
2 changes: 1 addition & 1 deletion src/plug_manager/plugin_settings_dlg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl<'a> Builder<'a> {
}

fn extract_name(path: &str) -> Option<String> {
if let Some(idx) = path.rfind(|c| c == '/' || c == '\\') {
if let Some(idx) = path.rfind(['/', '\\']) {
if idx < path.len() - 1 {
let path = path.trim_end_matches(".git");
Some(path[idx + 1..].to_owned())
Expand Down

0 comments on commit 893f98d

Please sign in to comment.