Skip to content

Commit 60bc54a

Browse files
committed
update docs
1 parent 1049d3d commit 60bc54a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/src/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ use crate::types::*;
77
use std::sync::Arc;
88
use tokio::sync::Mutex;
99

10+
/// Abstracts a cypher query that is sent to neo4j server.
1011
#[derive(Clone)]
1112
pub struct Query {
1213
query: String,
1314
params: BoltMap,
1415
}
1516

16-
/// Abstracts a cypher query that is sent to neo4j server.
1717
impl Query {
1818
pub fn new(query: String) -> Self {
1919
Query {

lib/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ impl Hash for BoltType {
8181
BoltType::Date(t) => t.hash(state),
8282
BoltType::Time(t) => t.hash(state),
8383
BoltType::LocalTime(t) => t.hash(state),
84+
//The below types cannot be hashed
8485
BoltType::Path(_) => panic!("path not hashed"),
8586
BoltType::Bytes(_) => panic!("bytes not hashed"),
8687
BoltType::Float(_) => panic!("float not hashed"),

0 commit comments

Comments
 (0)