Skip to content

Commit 78383fd

Browse files
committed
chore: cargo fmt
1 parent ebaaf57 commit 78383fd

File tree

15 files changed

+16
-16
lines changed

15 files changed

+16
-16
lines changed

typesense/src/document.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! A document to be indexed in a given collection must conform to the schema of the collection.
55
//!
66
use crate::collection_schema::CollectionSchema;
7-
use serde::{de::DeserializeOwned, Serialize};
7+
use serde::{Serialize, de::DeserializeOwned};
88

99
/// Trait that should implement every struct that wants to be represented as a Typesense
1010
/// Document

typesense/src/keys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! More info [here](https://typesense.org/docs/0.20.0/api/api-keys.html).
44
5-
use base64::{engine::general_purpose::STANDARD as Base64Engine, Engine};
5+
use base64::{Engine, engine::general_purpose::STANDARD as Base64Engine};
66
use core::fmt;
77
use hmac::{Hmac, Mac};
88
use serde::{Deserialize, Serialize};

typesense/tests/api/collection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
use super::Config;
44
use serde::{Deserialize, Serialize};
5-
use typesense::document::Document;
65
use typesense::Typesense;
6+
use typesense::document::Document;
77
use typesense_codegen::apis::collections_api;
88
use typesense_codegen::models::{CollectionResponse, CollectionSchema};
99

typesense/tests/api/documents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
use super::Config;
44
use serde::{Deserialize, Serialize};
5+
use typesense::Typesense;
56
use typesense::document::Document;
67
use typesense::models::SearchParameters;
7-
use typesense::Typesense;
88
use typesense_codegen::apis::documents_api;
99

1010
#[derive(Typesense, Serialize, Deserialize)]

typesense/tests/derive/collection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use serde::{Deserialize, Serialize};
2-
use typesense::document::Document;
32
use typesense::Typesense;
3+
use typesense::document::Document;
44

55
#[test]
66
fn derived_document_generates_schema() {

typesense_codegen/src/apis/analytics_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
use super::{configuration, Error};
11+
use super::{Error, configuration};
1212
use crate::apis::ResponseContent;
1313

1414
/// struct for typed errors of method [`create_analytics_rule`]

typesense_codegen/src/apis/collections_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
use super::{configuration, Error};
11+
use super::{Error, configuration};
1212
use crate::apis::ResponseContent;
1313

1414
/// struct for typed errors of method [`create_collection`]

typesense_codegen/src/apis/debug_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
use super::{configuration, Error};
11+
use super::{Error, configuration};
1212
use crate::apis::ResponseContent;
1313

1414
/// struct for typed errors of method [`debug`]

typesense_codegen/src/apis/documents_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
use super::{configuration, Error};
11+
use super::{Error, configuration};
1212
use crate::apis::ResponseContent;
1313

1414
/// struct for typed errors of method [`delete_document`]

typesense_codegen/src/apis/health_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
use super::{configuration, Error};
11+
use super::{Error, configuration};
1212
use crate::apis::ResponseContent;
1313

1414
/// struct for typed errors of method [`health`]

0 commit comments

Comments
 (0)