Update dependency versions. Fix minor warnings.
This commit is contained in:
parent
b428579865
commit
bf1ac14d32
23 changed files with 96 additions and 96 deletions
11
Cargo.toml
11
Cargo.toml
|
@ -38,17 +38,16 @@ features = ["run-for-all", "precommit-hook", "run-cargo-fmt", "run-cargo-test",
|
|||
|
||||
[dependencies]
|
||||
chrono = "0.4"
|
||||
failure = "0.1.6"
|
||||
lazy_static = "1.4.0"
|
||||
time = "0.2"
|
||||
failure = "0.1"
|
||||
lazy_static = "1.4"
|
||||
time = "0.2.15"
|
||||
log = "0.4"
|
||||
uuid = { version = "0.8", features = ["v4", "serde"] }
|
||||
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22.0"
|
||||
# System sqlite might be very old.
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
||||
[dependencies.edn]
|
||||
path = "edn"
|
||||
|
|
|
@ -10,8 +10,8 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
enum-set = "0.0.8"
|
||||
lazy_static = "1.4.0"
|
||||
indexmap = "1.3.1"
|
||||
lazy_static = "1.4"
|
||||
indexmap = "1.3"
|
||||
ordered-float = { version = "1.0.2", features = ["serde"] }
|
||||
uuid = { version = "0.8", features = ["v4", "serde"] }
|
||||
serde = { version = "1.0", features = ["rc"] }
|
||||
|
|
|
@ -21,5 +21,5 @@ path = "../edn"
|
|||
path = "../core-traits"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
|
|
@ -9,12 +9,12 @@ sqlcipher = ["rusqlite/sqlcipher"]
|
|||
syncable = ["serde", "serde_json", "serde_derive"]
|
||||
|
||||
[dependencies]
|
||||
failure = "0.1.6"
|
||||
indexmap = "1.3.1"
|
||||
failure = "0.1"
|
||||
indexmap = "1.3"
|
||||
itertools = "0.9"
|
||||
lazy_static = "1.4.0"
|
||||
lazy_static = "1.4"
|
||||
log = "0.4"
|
||||
ordered-float = "1.0.2"
|
||||
ordered-float = "1.0"
|
||||
time = "0.2"
|
||||
petgraph = "0.5"
|
||||
serde = { version = "1.0", optional = true }
|
||||
|
@ -22,8 +22,8 @@ serde_json = { version = "1.0", optional = true }
|
|||
serde_derive = { version = "1.0", optional = true }
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
||||
[dependencies.edn]
|
||||
path = "../edn"
|
||||
|
|
|
@ -375,7 +375,7 @@ impl RemoveFromCache for MultiValAttributeCache {
|
|||
|
||||
impl CardinalityManyCache for MultiValAttributeCache {
|
||||
fn acc(&mut self, e: Entid, v: TypedValue) {
|
||||
self.e_vs.entry(e).or_insert_with(|| vec![]).push(v)
|
||||
self.e_vs.entry(e).or_insert_with(Vec::new).push(v)
|
||||
}
|
||||
|
||||
fn set(&mut self, e: Entid, vs: Vec<TypedValue>) {
|
||||
|
|
|
@ -111,7 +111,7 @@ fn update_attribute_map_from_schema_retractions(
|
|||
let mut eas = BTreeMap::new();
|
||||
for (e, a, v) in retractions.into_iter() {
|
||||
if entids::is_a_schema_attribute(a) {
|
||||
eas.entry(e).or_insert_with(|| vec![]).push(a);
|
||||
eas.entry(e).or_insert_with(Vec::new).push(a);
|
||||
suspect_retractions.push((e, a, v));
|
||||
} else {
|
||||
filtered_retractions.push((e, a, v));
|
||||
|
|
|
@ -276,7 +276,7 @@ impl Generation {
|
|||
if attribute.unique == Some(attribute::Unique::Identity) {
|
||||
tempid_avs
|
||||
.entry((*a, Right(t2.clone())))
|
||||
.or_insert_with(|| vec![])
|
||||
.or_insert_with(Vec::new)
|
||||
.push(t1.clone());
|
||||
}
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ impl Generation {
|
|||
if attribute.unique == Some(attribute::Unique::Identity) {
|
||||
tempid_avs
|
||||
.entry((*a, x.clone()))
|
||||
.or_insert_with(|| vec![])
|
||||
.or_insert_with(Vec::new)
|
||||
.push(t.clone());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1030,8 +1030,8 @@ impl ParsedQuery {
|
|||
Ok(ParsedQuery {
|
||||
find_spec: find_spec.ok_or("expected :find")?,
|
||||
default_source: SrcVar::DefaultSrc,
|
||||
with: with.unwrap_or_else(|| vec![]),
|
||||
in_vars: in_vars.unwrap_or_else(|| vec![]),
|
||||
with: with.unwrap_or_else(Vec::new), //
|
||||
in_vars: in_vars.unwrap_or_else(Vec::new),
|
||||
in_sources: BTreeSet::default(),
|
||||
limit: limit.unwrap_or(Limit::None),
|
||||
where_clauses: where_clauses.ok_or("expected :where")?,
|
||||
|
|
|
@ -20,8 +20,8 @@ tokio-core = "0.1"
|
|||
uuid = "0.8"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
||||
[dependencies.edn]
|
||||
path = "../edn"
|
||||
|
|
|
@ -4,7 +4,7 @@ version = "0.0.1"
|
|||
workspace = ".."
|
||||
|
||||
[dependencies]
|
||||
failure = "0.1.1"
|
||||
failure = "0.1"
|
||||
|
||||
[dependencies.edn]
|
||||
path = "../edn"
|
||||
|
|
|
@ -129,7 +129,7 @@ impl ConjoiningClauses {
|
|||
if where_fn.binding.is_empty() {
|
||||
// The binding must introduce at least one bound variable.
|
||||
bail!(AlgebrizerError::InvalidBinding(
|
||||
where_fn.operator.clone(),
|
||||
where_fn.operator,
|
||||
BindingError::NoBoundVariable
|
||||
));
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ impl ConjoiningClauses {
|
|||
if !where_fn.binding.is_valid() {
|
||||
// The binding must not duplicate bound variables.
|
||||
bail!(AlgebrizerError::InvalidBinding(
|
||||
where_fn.operator.clone(),
|
||||
where_fn.operator,
|
||||
BindingError::RepeatedBoundVariable
|
||||
));
|
||||
}
|
||||
|
|
|
@ -508,7 +508,7 @@ impl ConjoiningClauses {
|
|||
|
||||
self.column_bindings
|
||||
.entry(var)
|
||||
.or_insert_with(|| vec![])
|
||||
.or_insert_with(Vec::new)
|
||||
.push(alias);
|
||||
}
|
||||
|
||||
|
|
|
@ -727,7 +727,7 @@ fn union_types(
|
|||
for (var, new_types) in additional_types {
|
||||
match into.entry(var.clone()) {
|
||||
Entry::Vacant(e) => {
|
||||
e.insert(new_types.clone());
|
||||
e.insert(*new_types);
|
||||
}
|
||||
Entry::Occupied(mut e) => {
|
||||
let new = e.get().union(*new_types);
|
||||
|
|
|
@ -98,7 +98,7 @@ impl ConjoiningClauses {
|
|||
.intersection(supported_types);
|
||||
if left_types.is_empty() {
|
||||
bail!(AlgebrizerError::InvalidArgumentType(
|
||||
predicate.operator.clone(),
|
||||
predicate.operator,
|
||||
supported_types,
|
||||
0
|
||||
));
|
||||
|
@ -109,7 +109,7 @@ impl ConjoiningClauses {
|
|||
.intersection(supported_types);
|
||||
if right_types.is_empty() {
|
||||
bail!(AlgebrizerError::InvalidArgumentType(
|
||||
predicate.operator.clone(),
|
||||
predicate.operator,
|
||||
supported_types,
|
||||
1
|
||||
));
|
||||
|
@ -161,7 +161,7 @@ impl ConjoiningClauses {
|
|||
right_v = self.resolve_ref_argument(known.schema, &predicate.operator, 1, right)?;
|
||||
} else {
|
||||
bail!(AlgebrizerError::InvalidArgumentType(
|
||||
predicate.operator.clone(),
|
||||
predicate.operator,
|
||||
supported_types,
|
||||
0
|
||||
));
|
||||
|
|
|
@ -15,8 +15,8 @@ failure = "0.1"
|
|||
failure_derive = "0.1"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
||||
[dependencies.edn]
|
||||
path = "../edn"
|
||||
|
|
|
@ -11,8 +11,8 @@ failure = "0.1"
|
|||
indexmap = "1.3"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
||||
[dependencies.core_traits]
|
||||
path = "../core-traits"
|
||||
|
|
|
@ -7,14 +7,14 @@ workspace = ".."
|
|||
sqlcipher = ["rusqlite/sqlcipher"]
|
||||
|
||||
[dependencies]
|
||||
failure = "0.1.1"
|
||||
failure = "0.1"
|
||||
|
||||
[dependencies.query_pull_traits]
|
||||
path = "../query-pull-traits"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
||||
[dependencies.edn]
|
||||
path = "../edn"
|
||||
|
|
|
@ -3,8 +3,9 @@ name = "mentat_query_sql"
|
|||
version = "0.0.1"
|
||||
workspace = ".."
|
||||
|
||||
[dependencies]
|
||||
rusqlite = "0.22"
|
||||
[dependencies.rusqlite]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
||||
[dependencies.edn]
|
||||
path = "../edn"
|
||||
|
|
|
@ -11,8 +11,8 @@ failure = "0.1"
|
|||
ordered-float = "1.0"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
||||
[dependencies.core_traits]
|
||||
path = "../core-traits"
|
||||
|
|
|
@ -22,5 +22,5 @@ uuid = { version = "0.8" }
|
|||
path = "../db-traits"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
|
|
@ -51,5 +51,5 @@ path = "../public-traits"
|
|||
path = "../transaction"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
|
|
@ -34,8 +34,8 @@ termion = "1.5"
|
|||
time = "0.2"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
||||
[dependencies.mentat]
|
||||
path = "../.."
|
||||
|
|
|
@ -43,5 +43,5 @@ path = "../query-pull"
|
|||
path = "../query-sql"
|
||||
|
||||
[dependencies.rusqlite]
|
||||
version = "0.22"
|
||||
features = ["limits"]
|
||||
version = "0.23"
|
||||
features = ["limits", "bundled"]
|
||||
|
|
Loading…
Reference in a new issue