Skip to content

Commit 3dc265d

Browse files
committed
Fixed clippy issues
1 parent 88c9543 commit 3dc265d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

basics/account-data/steel/program/src/create_address_info.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn process_create_address_info(accounts: &[AccountInfo<'_>], data: &[u8]) ->
4646
city: '{}'
4747
}}",
4848
bytes_to_string(&args.data.name),
49-
u64::from_le_bytes(args.data.house_number.try_into().unwrap_or_default()),
49+
u64::from_le_bytes(args.data.house_number),
5050
bytes_to_string(&args.data.street),
5151
bytes_to_string(&args.data.city),
5252
);
@@ -79,8 +79,6 @@ pub fn process_create_address_info(accounts: &[AccountInfo<'_>], data: &[u8]) ->
7979
address_info
8080
.data
8181
.house_number
82-
.try_into()
83-
.unwrap_or_default()
8482
),
8583
bytes_to_string(&address_info.data.street),
8684
bytes_to_string(&address_info.data.city),

0 commit comments

Comments
 (0)