Skip to content

Commit 36c8e21

Browse files
committed
format space
1 parent ff1b8c1 commit 36c8e21

4 files changed

Lines changed: 16 additions & 17 deletions

File tree

src/dfi/govvariables/attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,8 @@ static inline std::string GetDecimalStringNormalized(const CAmount amount) {
764764
return decimalStr;
765765
}
766766

767-
const std::map<uint8_t, std::map<uint8_t, std::function<ResVal<CAttributeValue>(const std::string &)>>>
768-
&ATTRIBUTES::parseValue() {
767+
const std::map<uint8_t, std::map<uint8_t, std::function<ResVal<CAttributeValue>(const std::string &)>>> &
768+
ATTRIBUTES::parseValue() {
769769
static const std::map<uint8_t, std::map<uint8_t, std::function<ResVal<CAttributeValue>(const std::string &)>>>
770770
parsers{
771771
{AttributeTypes::Token,

src/dfi/govvariables/attributes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ class ATTRIBUTES : public GovVariable, public AutoRegistrator<GovVariable, ATTRI
544544
static const std::map<std::string, uint8_t> &allowedVaultIDs();
545545
static const std::map<std::string, uint8_t> &allowedRulesIDs();
546546
static const std::map<uint8_t, std::map<std::string, uint8_t>> &allowedKeys();
547-
static const std::map<uint8_t, std::map<uint8_t, std::function<ResVal<CAttributeValue>(const std::string &)>>>
548-
&parseValue();
547+
static const std::map<uint8_t, std::map<uint8_t, std::function<ResVal<CAttributeValue>(const std::string &)>>> &
548+
parseValue();
549549

550550
Res ProcessVariable(const std::string &key,
551551
const std::optional<UniValue> &value,

src/dfi/validation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3132,7 +3132,6 @@ Res ProcessDeFiEventFallible(const CBlock &block,
31323132

31333133
// Ocean archive
31343134
if (gArgs.GetBoolArg("-oceanarchive", DEFAULT_OCEAN_ARCHIVE_ENABLED)) {
3135-
31363135
const UniValue b = blockToJSON(block, ::ChainActive().Tip(), pindex, true, 2);
31373136
CrossBoundaryResult result;
31383137
ocean_index_block(result, b.write());

src/ffi/cxx.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ namespace rust {
5555
static String lossy(const char16_t *) noexcept;
5656
static String lossy(const char16_t *, std::size_t) noexcept;
5757

58-
String &operator=(const String &) &noexcept;
59-
String &operator=(String &&) &noexcept;
58+
String &operator=(const String &) & noexcept;
59+
String &operator=(String &&) & noexcept;
6060

6161
explicit operator std::string() const;
6262

@@ -115,7 +115,7 @@ namespace rust {
115115
Str(const char *);
116116
Str(const char *, std::size_t);
117117

118-
Str &operator=(const Str &) &noexcept = default;
118+
Str &operator=(const Str &) & noexcept = default;
119119

120120
explicit operator std::string() const;
121121

@@ -163,8 +163,8 @@ namespace rust {
163163
struct copy_assignable_if<false> {
164164
copy_assignable_if() noexcept = default;
165165
copy_assignable_if(const copy_assignable_if &) noexcept = default;
166-
copy_assignable_if &operator=(const copy_assignable_if &) &noexcept = delete;
167-
copy_assignable_if &operator=(copy_assignable_if &&) &noexcept = default;
166+
copy_assignable_if &operator=(const copy_assignable_if &) & noexcept = delete;
167+
copy_assignable_if &operator=(copy_assignable_if &&) & noexcept = default;
168168
};
169169
} // namespace detail
170170

@@ -177,8 +177,8 @@ namespace rust {
177177
Slice() noexcept;
178178
Slice(T *, std::size_t count) noexcept;
179179

180-
Slice &operator=(const Slice<T> &) &noexcept = default;
181-
Slice &operator=(Slice<T> &&) &noexcept = default;
180+
Slice &operator=(const Slice<T> &) & noexcept = default;
181+
Slice &operator=(Slice<T> &&) & noexcept = default;
182182

183183
T *data() const noexcept;
184184
std::size_t size() const noexcept;
@@ -265,7 +265,7 @@ namespace rust {
265265
explicit Box(const T &);
266266
explicit Box(T &&);
267267

268-
Box &operator=(Box &&) &noexcept;
268+
Box &operator=(Box &&) & noexcept;
269269

270270
const T *operator->() const noexcept;
271271
const T &operator*() const noexcept;
@@ -310,7 +310,7 @@ namespace rust {
310310
Vec(Vec &&) noexcept;
311311
~Vec() noexcept;
312312

313-
Vec &operator=(Vec &&) &noexcept;
313+
Vec &operator=(Vec &&) & noexcept;
314314
Vec &operator=(const Vec &) &;
315315

316316
std::size_t size() const noexcept;
@@ -391,7 +391,7 @@ namespace rust {
391391
~Error() noexcept override;
392392

393393
Error &operator=(const Error &) &;
394-
Error &operator=(Error &&) &noexcept;
394+
Error &operator=(Error &&) & noexcept;
395395

396396
const char *what() const noexcept override;
397397

@@ -758,7 +758,7 @@ namespace rust {
758758
}
759759

760760
template <typename T>
761-
Box<T> &Box<T>::operator=(Box &&other) &noexcept {
761+
Box<T> &Box<T>::operator=(Box &&other) & noexcept {
762762
if (this->ptr) {
763763
this->drop();
764764
}
@@ -849,7 +849,7 @@ namespace rust {
849849
}
850850

851851
template <typename T>
852-
Vec<T> &Vec<T>::operator=(Vec &&other) &noexcept {
852+
Vec<T> &Vec<T>::operator=(Vec &&other) & noexcept {
853853
this->drop();
854854
this->repr = other.repr;
855855
new (&other) Vec();

0 commit comments

Comments
 (0)