Commit a532072
authored
Rename Host::check_same_env to Host::is_same (#1555)
### What
Rename the host comparison method from check_same_env to is_same,
changing it to return a boolean instead of a Result.
### Why
The new name better reflects the method's purpose of being used by the
SDK to compare two Hosts and determine if they in fact are the same
underlying host implementation. The check function returns a result with
the host assuming that there is in fact an error, whilst the is function
returns a bool, merely providing information to the SDK so that the SDK
can then decide in the context of its use whether there is an error or a
change in behaviour is required.
Close #1554
Related:
-
stellar/rs-soroban-sdk#1467 (comment)1 parent 28a3e19 commit a532072
2 files changed
+15
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
758 | 751 | | |
759 | 752 | | |
760 | 753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
| |||
0 commit comments