Skip to content

Commit 53249e0

Browse files
committed
chore: fix codestyle and regenerate C++/Rust bindings
1 parent 3408fab commit 53249e0

File tree

3 files changed

+126
-74
lines changed

3 files changed

+126
-74
lines changed

rpmostree-cxxrs.cxx

Lines changed: 80 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,10 +2307,11 @@ extern "C"
23072307
void (*container_rebuild$) (::rust::Str) = ::rpmostreecxx::container_rebuild;
23082308
::rust::repr::PtrLen throw$;
23092309
::rust::behavior::trycatch (
2310-
[&] {
2311-
container_rebuild$ (treefile);
2312-
throw$.ptr = nullptr;
2313-
},
2310+
[&]
2311+
{
2312+
container_rebuild$ (treefile);
2313+
throw$.ptr = nullptr;
2314+
},
23142315
::rust::detail::Fail (throw$));
23152316
return throw$;
23162317
}
@@ -3055,11 +3056,12 @@ extern "C"
30553056
= ::rpmostreecxx::util_next_version;
30563057
::rust::repr::PtrLen throw$;
30573058
::rust::behavior::trycatch (
3058-
[&] {
3059-
new (return$)::rust::String (
3060-
util_next_version$ (auto_version_prefix, version_suffix, last_version));
3061-
throw$.ptr = nullptr;
3062-
},
3059+
[&]
3060+
{
3061+
new (return$)::rust::String (
3062+
util_next_version$ (auto_version_prefix, version_suffix, last_version));
3063+
throw$.ptr = nullptr;
3064+
},
30633065
::rust::detail::Fail (throw$));
30643066
return throw$;
30653067
}
@@ -3088,10 +3090,11 @@ extern "C"
30883090
= ::rpmostreecxx::rpmostree_main;
30893091
::rust::repr::PtrLen throw$;
30903092
::rust::behavior::trycatch (
3091-
[&] {
3092-
new (return$)::std::int32_t (rpmostree_main$ (args));
3093-
throw$.ptr = nullptr;
3094-
},
3093+
[&]
3094+
{
3095+
new (return$)::std::int32_t (rpmostree_main$ (args));
3096+
throw$.ptr = nullptr;
3097+
},
30953098
::rust::detail::Fail (throw$));
30963099
return throw$;
30973100
}
@@ -3110,10 +3113,11 @@ extern "C"
31103113
void (*c_unit_tests$) () = ::rpmostreecxx::c_unit_tests;
31113114
::rust::repr::PtrLen throw$;
31123115
::rust::behavior::trycatch (
3113-
[&] {
3114-
c_unit_tests$ ();
3115-
throw$.ptr = nullptr;
3116-
},
3116+
[&]
3117+
{
3118+
c_unit_tests$ ();
3119+
throw$.ptr = nullptr;
3120+
},
31173121
::rust::detail::Fail (throw$));
31183122
return throw$;
31193123
}
@@ -3124,10 +3128,11 @@ extern "C"
31243128
void (*client_require_root$) () = ::rpmostreecxx::client_require_root;
31253129
::rust::repr::PtrLen throw$;
31263130
::rust::behavior::trycatch (
3127-
[&] {
3128-
client_require_root$ ();
3129-
throw$.ptr = nullptr;
3130-
},
3131+
[&]
3132+
{
3133+
client_require_root$ ();
3134+
throw$.ptr = nullptr;
3135+
},
31313136
::rust::detail::Fail (throw$));
31323137
return throw$;
31333138
}
@@ -3140,10 +3145,11 @@ extern "C"
31403145
= ::rpmostreecxx::new_client_connection;
31413146
::rust::repr::PtrLen throw$;
31423147
::rust::behavior::trycatch (
3143-
[&] {
3144-
new (return$)::rpmostreecxx::ClientConnection *(new_client_connection$ ().release ());
3145-
throw$.ptr = nullptr;
3146-
},
3148+
[&]
3149+
{
3150+
new (return$)::rpmostreecxx::ClientConnection *(new_client_connection$ ().release ());
3151+
throw$.ptr = nullptr;
3152+
},
31473153
::rust::detail::Fail (throw$));
31483154
return throw$;
31493155
}
@@ -3165,10 +3171,11 @@ extern "C"
31653171
= &::rpmostreecxx::ClientConnection::transaction_connect_progress_sync;
31663172
::rust::repr::PtrLen throw$;
31673173
::rust::behavior::trycatch (
3168-
[&] {
3169-
(self.*transaction_connect_progress_sync$) (address);
3170-
throw$.ptr = nullptr;
3171-
},
3174+
[&]
3175+
{
3176+
(self.*transaction_connect_progress_sync$) (address);
3177+
throw$.ptr = nullptr;
3178+
},
31723179
::rust::detail::Fail (throw$));
31733180
return throw$;
31743181
}
@@ -3207,11 +3214,12 @@ extern "C"
32073214
= ::rpmostreecxx::rpmdb_diff;
32083215
::rust::repr::PtrLen throw$;
32093216
::rust::behavior::trycatch (
3210-
[&] {
3211-
new (return$)::rpmostreecxx::RPMDiff *(
3212-
rpmdb_diff$ (repo, src, dest, allow_noent).release ());
3213-
throw$.ptr = nullptr;
3214-
},
3217+
[&]
3218+
{
3219+
new (return$)::rpmostreecxx::RPMDiff *(
3220+
rpmdb_diff$ (repo, src, dest, allow_noent).release ());
3221+
throw$.ptr = nullptr;
3222+
},
32153223
::rust::detail::Fail (throw$));
32163224
return throw$;
32173225
}
@@ -3265,10 +3273,11 @@ extern "C"
32653273
= ::rpmostreecxx::nevra_to_cache_branch;
32663274
::rust::repr::PtrLen throw$;
32673275
::rust::behavior::trycatch (
3268-
[&] {
3269-
new (return$)::rust::String (nevra_to_cache_branch$ (nevra));
3270-
throw$.ptr = nullptr;
3271-
},
3276+
[&]
3277+
{
3278+
new (return$)::rust::String (nevra_to_cache_branch$ (nevra));
3279+
throw$.ptr = nullptr;
3280+
},
32723281
::rust::detail::Fail (throw$));
32733282
return throw$;
32743283
}
@@ -3281,10 +3290,11 @@ extern "C"
32813290
= ::rpmostreecxx::get_repodata_chksum_repr;
32823291
::rust::repr::PtrLen throw$;
32833292
::rust::behavior::trycatch (
3284-
[&] {
3285-
new (return$)::rust::String (get_repodata_chksum_repr$ (pkg));
3286-
throw$.ptr = nullptr;
3287-
},
3293+
[&]
3294+
{
3295+
new (return$)::rust::String (get_repodata_chksum_repr$ (pkg));
3296+
throw$.ptr = nullptr;
3297+
},
32883298
::rust::detail::Fail (throw$));
32893299
return throw$;
32903300
}
@@ -3298,10 +3308,11 @@ extern "C"
32983308
= ::rpmostreecxx::rpmts_for_commit;
32993309
::rust::repr::PtrLen throw$;
33003310
::rust::behavior::trycatch (
3301-
[&] {
3302-
new (return$)::rpmostreecxx::RpmTs *(rpmts_for_commit$ (repo, rev).release ());
3303-
throw$.ptr = nullptr;
3304-
},
3311+
[&]
3312+
{
3313+
new (return$)::rpmostreecxx::RpmTs *(rpmts_for_commit$ (repo, rev).release ());
3314+
throw$.ptr = nullptr;
3315+
},
33053316
::rust::detail::Fail (throw$));
33063317
return throw$;
33073318
}
@@ -3314,11 +3325,12 @@ extern "C"
33143325
= ::rpmostreecxx::rpmdb_package_name_list;
33153326
::rust::repr::PtrLen throw$;
33163327
::rust::behavior::trycatch (
3317-
[&] {
3318-
new (return$)::rust::Vec<::rust::String> (
3319-
rpmdb_package_name_list$ (dfd, ::rust::String (::rust::unsafe_bitcopy, *path)));
3320-
throw$.ptr = nullptr;
3321-
},
3328+
[&]
3329+
{
3330+
new (return$)::rust::Vec<::rust::String> (
3331+
rpmdb_package_name_list$ (dfd, ::rust::String (::rust::unsafe_bitcopy, *path)));
3332+
throw$.ptr = nullptr;
3333+
},
33223334
::rust::detail::Fail (throw$));
33233335
return throw$;
33243336
}
@@ -3333,10 +3345,12 @@ extern "C"
33333345
= &::rpmostreecxx::RpmTs::package_meta;
33343346
::rust::repr::PtrLen throw$;
33353347
::rust::behavior::trycatch (
3336-
[&] {
3337-
new (return$)::rpmostreecxx::PackageMeta *((self.*package_meta$) (name, arch).release ());
3338-
throw$.ptr = nullptr;
3339-
},
3348+
[&]
3349+
{
3350+
new (return$)::rpmostreecxx::PackageMeta *(
3351+
(self.*package_meta$) (name, arch).release ());
3352+
throw$.ptr = nullptr;
3353+
},
33403354
::rust::detail::Fail (throw$));
33413355
return throw$;
33423356
}
@@ -3382,10 +3396,11 @@ extern "C"
33823396
= &::rpmostreecxx::PackageMeta::provided_paths;
33833397
::rust::repr::PtrLen throw$;
33843398
::rust::behavior::trycatch (
3385-
[&] {
3386-
new (return$)::rust::Vec<::rust::String> ((self.*provided_paths$) ());
3387-
throw$.ptr = nullptr;
3388-
},
3399+
[&]
3400+
{
3401+
new (return$)::rust::Vec<::rust::String> ((self.*provided_paths$) ());
3402+
throw$.ptr = nullptr;
3403+
},
33893404
::rust::detail::Fail (throw$));
33903405
return throw$;
33913406
}
@@ -3400,11 +3415,12 @@ extern "C"
34003415
= ::rpmostreecxx::package_variant_list_for_commit;
34013416
::rust::repr::PtrLen throw$;
34023417
::rust::behavior::trycatch (
3403-
[&] {
3404-
new (return$)::rpmostreecxx::GVariant *(
3405-
package_variant_list_for_commit$ (repo, rev, cancellable));
3406-
throw$.ptr = nullptr;
3407-
},
3418+
[&]
3419+
{
3420+
new (return$)::rpmostreecxx::GVariant *(
3421+
package_variant_list_for_commit$ (repo, rev, cancellable));
3422+
throw$.ptr = nullptr;
3423+
},
34083424
::rust::detail::Fail (throw$));
34093425
return throw$;
34103426
}

rust/cxx.h

Lines changed: 38 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)