update dependencies

master
Aleš Katona 5 months ago
parent 46199310f0
commit e10a96402f
Signed by: almindor
GPG Key ID: 2F773149BF38B48F

879
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -12,11 +12,12 @@ categories = ["development-tools::cargo-plugins", "command-line-utilities"]
repository = "https://codeberg.org/almindor/cargo-vcs" repository = "https://codeberg.org/almindor/cargo-vcs"
[dependencies] [dependencies]
clap = { version = "3.2", features = ["derive"] } clap = { version = "4.5", features = ["derive"] }
crossterm = "0.24" crossterm = "0.28"
enumset = "1.0" enumset = "1.0"
git2 = "0.14" git2 = "0.19"
machine-uid = "0.2" machine-uid = "0.5"
semver = "1.0" semver = "1.0"
termtree = "0.4" serde = "1.0"
toml = "0.5" termtree = "0.5"
toml = "0.8"

@ -6,10 +6,7 @@ use std::{
path::{Path, PathBuf}, path::{Path, PathBuf},
}; };
use toml::{ use toml::{map::Map, value::Table, Value};
value::{Map, Table},
Value,
};
pub mod cli; pub mod cli;
mod colors; mod colors;
@ -201,8 +198,9 @@ impl Vcs {
if let Some(section) = vcs_section.as_table_mut() { if let Some(section) = vcs_section.as_table_mut() {
section.insert(profile_name.into(), value); section.insert(profile_name.into(), value);
} else { } else {
return Err(Error::Upstream(Box::new(toml::ser::Error::Custom( use serde::ser::Error as _;
"Existing vcs section not a table".into(), return Err(Error::Upstream(Box::new(toml::ser::Error::custom(
"Existing vcs section not a table",
)))); ))));
} }
} else { } else {

Loading…
Cancel
Save