Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelvlach committed Aug 30, 2024
1 parent 868542d commit 0deb500
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion agdb/src/collections/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ mod tests {
#[test]
fn derived_from_debug() {
let value = MapValueState::Deleted;
format!("{value:?}");
let _ = format!("{value:?}");
}
#[test]
fn derived_from_default() {
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,6 @@ mod tests {
fn derived_from_debug() {
let test_file = TestFile::new();
let db = Db::new(test_file.file_name()).unwrap();
format!("{:?}", db);
let _ = format!("{:?}", db);
}
}
2 changes: 1 addition & 1 deletion agdb/src/db/db_element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod tests {
use super::*;
#[test]
fn derived_from_debug() {
format!(
let _ = format!(
"{:?}",
DbElement {
id: DbId(0),
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/db/db_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ mod tests {
#[test]
fn derived_from_debug() {
let error = DbError::from("error");
format!("{error:?}");
let _ = format!("{error:?}");
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/db/db_f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ mod tests {
}
#[test]
fn derived_from_debug() {
format!("{:?}", DbF64::from(1.0_f64));
let _ = format!("{:?}", DbF64::from(1.0_f64));
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/db/db_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod tests {

#[test]
fn derived_from_debug() {
format!("{:?}", DbKeyOrder::Asc(DbValue::default()));
let _ = format!("{:?}", DbKeyOrder::Asc(DbValue::default()));
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/db/db_key_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mod tests {
use super::*;
#[test]
fn derived_from_debug() {
format!(
let _ = format!(
"{:?}",
DbKeyValue {
key: DbValue::I64(0),
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/db/db_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ mod tests {

#[test]
fn derived_from_debug() {
format!("{:?}", DbValue::from(""));
let _ = format!("{:?}", DbValue::from(""));
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/db/db_value_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ mod tests {

#[test]
fn derived_from_debug() {
format!("{:?}", DbValueIndex::new());
let _ = format!("{:?}", DbValueIndex::new());
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ mod tests {
#[test]
fn derived_from_debug() {
let index = GraphIndex::default();
format!("{index:?}");
let _ = format!("{index:?}");
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/graph_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ mod tests {

#[test]
fn derived_from_debug() {
format!("{:?}", SearchControl::Continue(false));
let _ = format!("{:?}", SearchControl::Continue(false));
}

#[test]
Expand Down
6 changes: 3 additions & 3 deletions agdb/src/query/query_condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ mod tests {

#[test]
fn derived_from_debug() {
format!(
let _ = format!(
"{:?}",
QueryCondition {
logic: QueryConditionLogic::And,
Expand All @@ -278,9 +278,9 @@ mod tests {
}
);

format!("{:?}", Comparison::Equal(DbValue::I64(0)));
let _ = format!("{:?}", Comparison::Equal(DbValue::I64(0)));

format!("{:?}", CountComparison::Equal(0));
let _ = format!("{:?}", CountComparison::Equal(0));
}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions agdb/src/query/query_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ mod tests {
}

#[test]
fn derived_from_debug_and_default() {
format!("{:?}", QueryError::default());
fn derived_from_debug() {
let _ = format!("{:?}", QueryError::default());
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/query/query_ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ mod tests {

#[test]
fn derived_from_debug() {
format!("{:?}", QueryIds::Ids(vec![QueryId::from(0)]));
let _ = format!("{:?}", QueryIds::Ids(vec![QueryId::from(0)]));
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/query/query_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mod test {

#[test]
fn derived_from_debug() {
format!("{:?}", QueryResult::default());
let _ = format!("{:?}", QueryResult::default());
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/query/search_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ mod tests {

#[test]
fn derived_from_debug() {
format!(
let _ = format!(
"{:?}",
SearchQuery {
algorithm: SearchQueryAlgorithm::BreadthFirst,
Expand Down
2 changes: 1 addition & 1 deletion agdb/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ mod tests {

#[test]
fn derived_from_debug() {
format!("{:?}", StorageIndex::default());
let _ = format!("{:?}", StorageIndex::default());
}

#[test]
Expand Down

0 comments on commit 0deb500

Please sign in to comment.