Skip to content

Commit 59980a1

Browse files
committed
fmt
1 parent fd96103 commit 59980a1

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/mongocxx/options/auto_encryption.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ const stdx::optional<bsoncxx::document::view_or_value>& auto_encryption::schema_
8484
return _schema_map;
8585
}
8686

87-
auto_encryption& auto_encryption::encrypted_fields_map(bsoncxx::document::view_or_value encrypted_fields_map) {
87+
auto_encryption& auto_encryption::encrypted_fields_map(
88+
bsoncxx::document::view_or_value encrypted_fields_map) {
8889
_encrypted_fields_map = std::move(encrypted_fields_map);
8990
return *this;
9091
}
9192

92-
const stdx::optional<bsoncxx::document::view_or_value>& auto_encryption::encrypted_fields_map() const {
93+
const stdx::optional<bsoncxx::document::view_or_value>& auto_encryption::encrypted_fields_map()
94+
const {
9395
return _encrypted_fields_map;
9496
}
9597

@@ -158,7 +160,8 @@ void* auto_encryption::convert() const {
158160

159161
if (_encrypted_fields_map) {
160162
scoped_bson_t encrypted_fields_map{*_encrypted_fields_map};
161-
libmongoc::auto_encryption_opts_set_encrypted_fields_map(mongoc_auto_encrypt_opts, encrypted_fields_map.bson());
163+
libmongoc::auto_encryption_opts_set_encrypted_fields_map(mongoc_auto_encrypt_opts,
164+
encrypted_fields_map.bson());
162165
}
163166

164167
if (_bypass) {

src/mongocxx/test/spec/client_side_encryption.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ void add_auto_encryption_opts(document::view test, options::client* client_opts)
7878
}
7979

8080
if (test_encrypt_opts["encryptedFieldsMap"]) {
81-
auto_encrypt_opts.encrypted_fields_map(test_encrypt_opts["encryptedFieldsMap"].get_document().value);
81+
auto_encrypt_opts.encrypted_fields_map(
82+
test_encrypt_opts["encryptedFieldsMap"].get_document().value);
8283
}
8384

8485
if (const auto providers = test_encrypt_opts["kmsProviders"]) {

src/mongocxx/test/spec/operation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,8 +1274,8 @@ document::value operation_runner::_create_index(const document::view& operation)
12741274
}
12751275

12761276
document::value operation_runner::_run_create_collection(document::view operation) {
1277-
using bsoncxx::builder::basic::make_document;
12781277
using bsoncxx::builder::basic::kvp;
1278+
using bsoncxx::builder::basic::make_document;
12791279

12801280
bsoncxx::document::value empty_document({});
12811281

@@ -1298,8 +1298,8 @@ document::value operation_runner::_run_create_collection(document::view operatio
12981298
}
12991299

13001300
document::value operation_runner::_run_drop_collection(document::view operation) {
1301-
using bsoncxx::builder::basic::make_document;
13021301
using bsoncxx::builder::basic::kvp;
1302+
using bsoncxx::builder::basic::make_document;
13031303

13041304
bsoncxx::document::value empty_document({});
13051305

0 commit comments

Comments
 (0)