saecki / crates.nvim

A neovim plugin that helps managing crates.io dependencies
MIT License
867 stars 30 forks source link

Compare the workspace kind against the enum value, not a string. #107

Closed dsully closed 9 months ago

dsully commented 9 months ago

I was getting a warning when editing a workspace Cargo.toml file that didn't make sense.

This should fix it.

[workspace]
members = [ "crates/*" ]
resolver = "2"

[workspace.package]
edition = "2021"

[workspace.dependencies]
git2 = { version = "^0", default_features = false, features = [
    "https",
    "openssl-sys",
    "ssh",
    "vendored-libgit2",
] }
reqwest = { version = "^0", default_features = false, features = [
    "blocking",
    "cookies",
    "deflate",
    "gzip",
    "json",
    "rustls-tls",
] }
saecki commented 9 months ago

It looks like #106 fixed the same thing 😄