File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
11
11
## Changed
12
12
- Restrict which ` cfg ` attributes can be used ‒ [ #2313 ] ( https://github.com/use-ink/ink/pull/2313 )
13
+ - More idiomatic return types for metadata getters - [ #2398 ] ( https://github.com/use-ink/ink/pull/2398 )
13
14
14
15
## Added
15
16
- Add feature flag to compile contracts for ` pallet-revive ` ‒ [ #2318 ] ( https://github.com/use-ink/ink/pull/2318 )
Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ impl InkProject {
123
123
}
124
124
125
125
/// Returns the metadata version used by the contract.
126
- pub fn version ( & self ) -> & u64 {
127
- & self . version
126
+ pub fn version ( & self ) -> u64 {
127
+ self . version
128
128
}
129
129
130
130
/// Returns a read-only registry of types in the contract.
Original file line number Diff line number Diff line change @@ -431,8 +431,8 @@ where
431
431
}
432
432
433
433
/// Returns if the constructor is payable by the caller.
434
- pub fn payable ( & self ) -> & bool {
435
- & self . payable
434
+ pub fn payable ( & self ) -> bool {
435
+ self . payable
436
436
}
437
437
438
438
/// Returns the parameters of the deployment handler.
@@ -450,8 +450,8 @@ where
450
450
& self . docs
451
451
}
452
452
453
- pub fn default ( & self ) -> & bool {
454
- & self . default
453
+ pub fn default ( & self ) -> bool {
454
+ self . default
455
455
}
456
456
}
457
457
@@ -743,8 +743,8 @@ where
743
743
& self . docs
744
744
}
745
745
746
- pub fn default ( & self ) -> & bool {
747
- & self . default
746
+ pub fn default ( & self ) -> bool {
747
+ self . default
748
748
}
749
749
}
750
750
You can’t perform that action at this time.
0 commit comments