Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreae committed Jan 16, 2024
1 parent 162c350 commit 0205e2c
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 16 deletions.
8 changes: 5 additions & 3 deletions aquadoggo/src/db/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ mod query;
mod task;
pub mod utils;

pub use self::log::{LogHeightRow, LogRow};
pub use self::log::LogHeightRow;
pub use document::{DocumentRow, DocumentViewFieldRow};
pub use entry::EntryRow;
pub use operation::{OperationFieldsJoinedRow, OperationRow};
pub use query::{OptionalOwner, QueryRow};
pub use operation::OperationFieldsJoinedRow;
#[cfg(test)]
pub use query::OptionalOwner;
pub use query::QueryRow;
pub use task::TaskRow;
2 changes: 1 addition & 1 deletion aquadoggo/src/db/models/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::db::types::StorageOperation;
pub fn parse_operation_rows(
operation_rows: Vec<OperationFieldsJoinedRow>,
) -> Option<StorageOperation> {
let first_row = match operation_rows.get(0) {
let first_row = match operation_rows.first() {
Some(row) => row,
None => return None,
};
Expand Down
1 change: 0 additions & 1 deletion aquadoggo/src/db/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ pub use filter::{Filter, FilterBy, FilterSetting, LowerBound, UpperBound};
pub use order::{Direction, Order};
pub use pagination::{Cursor, Pagination, PaginationField};
pub use select::{ApplicationFields, Select};
pub use validate::validate_query;
4 changes: 1 addition & 3 deletions aquadoggo/src/db/stores/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ mod schema;
mod task;

pub use operation::OperationCursor;
pub use query::{
PaginationCursor, PaginationData, Query, QueryResponse, RelationList, RelationListType,
};
pub use query::{PaginationCursor, PaginationData, Query, RelationList};
2 changes: 1 addition & 1 deletion aquadoggo/src/graphql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ mod schema;
mod tests;
pub mod utils;

pub use schema::{build_root_schema, GraphQLSchemaManager};
pub use schema::GraphQLSchemaManager;
5 changes: 4 additions & 1 deletion aquadoggo/src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ mod api;
mod context;
mod service;

#[cfg(test)]
pub use context::HttpServiceContext;
pub use service::{build_server, http_service};
#[cfg(test)]
pub use service::build_server;
pub use service::http_service;
3 changes: 1 addition & 2 deletions aquadoggo/src/network/peers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mod peer;
mod protocol;

pub use behaviour::{Behaviour, Event};
pub use handler::Handler;
pub use message::PeerMessage;
pub use peer::Peer;
pub use protocol::{Codec, CodecError, Protocol, PROTOCOL_NAME};
pub use protocol::{Codec, CodecError, Protocol};
4 changes: 2 additions & 2 deletions aquadoggo/src/proptests/strategies/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pub mod document;
pub mod filter;
pub mod schema;

pub use document::{documents_strategy, DocumentAST, FieldValue, HexString};
pub use document::{documents_strategy, DocumentAST, FieldValue};
pub use filter::{
application_filters_strategy, meta_field_filter_strategy, Filter, FilterValue, MetaField,
};
pub use schema::{schema_strategy, FieldName, SchemaAST, SchemaField, SchemaFieldType};
pub use schema::{schema_strategy, FieldName, SchemaAST, SchemaFieldType};
2 changes: 1 addition & 1 deletion aquadoggo/src/replication/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub mod traits;
pub use announcement::{now, Announcement, AnnouncementMessage};
pub use ingest::SyncIngest;
pub use manager::SyncManager;
pub use message::{LiveMode, LogHeights, Message, SyncMessage};
pub use message::{LogHeights, Message, SyncMessage};
pub use mode::Mode;
pub use schema_id_set::SchemaIdSet;
pub use service::replication_service;
Expand Down
2 changes: 1 addition & 1 deletion aquadoggo/src/test_utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod runner;

pub use client::{http_test_client, TestClient};
pub use config::TestConfiguration;
pub use db::{drop_database, initialize_db, initialize_sqlite_db};
pub use db::{initialize_db, initialize_sqlite_db};
pub use helpers::{doggo_fields, doggo_schema, generate_key_pairs, schema_from_fields};
pub use node::{
add_blob, add_document, add_schema, add_schema_and_documents, assert_query, delete_document,
Expand Down

0 comments on commit 0205e2c

Please sign in to comment.