Skip to content

Commit

Permalink
Use RefMut for &mut
Browse files Browse the repository at this point in the history
  • Loading branch information
HKalbasi committed Oct 5, 2023
1 parent 49988bf commit 4371681
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 131 deletions.
2 changes: 1 addition & 1 deletion examples/cxx_demo/blobstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BlobStore : public ::rust::crate::BlobStoreTrait {
};

public:
uint64_t put(::rust::Ref<::rust::crate::MultiBuf> buf) override {
uint64_t put(::rust::RefMut<::rust::crate::MultiBuf> buf) override {
std::string contents;

// Traverse the caller's chunk iterator.
Expand Down
2 changes: 1 addition & 1 deletion examples/memory_management/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
template <typename T> using Vec = ::rust::std::vec::Vec<T>;
// template <typename T> using Option = ::rust::std::option::Option<T>;
template <typename T> using BoxDyn = ::rust::Box<::rust::Dyn<T>>;
template <typename T> using RmDyn = ::rust::Ref<::rust::Dyn<T>>;
template <typename T> using RmDyn = ::rust::RefMut<::rust::Dyn<T>>;
using rust::crate::consume_and_panic;
using rust::crate::consume_n_times;
using rust::crate::PrintOnDrop;
Expand Down
Loading

0 comments on commit 4371681

Please sign in to comment.