Skip to content

Commit 742d16b

Browse files
committed
Few fixes
1 parent 8db9cbd commit 742d16b

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

ledger_device_sdk/src/ecc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl<const N: usize, const TY: char> ECPrivateKey<N, TY> {
189189
/// [here](https://blog.rust-lang.org/inside-rust/2021/09/06/Splitting-const-generics.html#featuregeneric_const_exprs)
190190
pub fn public_key(&self) -> Result<ECPublicKey<{ Self::P }, TY>, CxError>
191191
where
192-
[(); Self::P]:,
192+
[(); Self::P]: Sized,
193193
{
194194
let mut pubkey = ECPublicKey::<{ Self::P }, TY>::new(self.curve);
195195
let err = unsafe {

ledger_device_sdk/src/io_legacy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ impl Comm {
472472
G_ux_params.u.pairing_request.pairing_info_len = (_len - 2) as u32;
473473
for i in 0..G_ux_params.u.pairing_request.pairing_info_len as usize {
474474
G_ux_params.u.pairing_request.pairing_info[i as usize] =
475-
seph_buffer[5 + i] as i8;
475+
seph_buffer[5 + i] as u8;
476476
}
477477
G_ux_params.u.pairing_request.pairing_info
478478
[G_ux_params.u.pairing_request.pairing_info_len as usize] = 0;

ledger_device_sdk/src/libcall/swap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub fn get_printable_amount_params<
274274
debug_print("==> GET_AMOUNT_STR\n");
275275
printable_amount_params.amount_str = unsafe {
276276
&(*(libarg.__bindgen_anon_1.get_printable_amount as *mut get_printable_amount_parameters_t))
277-
.printable_amount as *const i8 as *mut i8
277+
.printable_amount as *const u8 as *mut i8
278278
};
279279

280280
printable_amount_params

ledger_device_sdk/src/nbgl/nbgl_review.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ impl<'a> NbglReview<'a> {
113113
let mut tag_value_array: Vec<nbgl_contentTagValue_t> = Vec::new();
114114
for field in v.iter() {
115115
let val = nbgl_contentTagValue_t {
116-
item: field.name.as_ptr() as *const i8,
117-
value: field.value.as_ptr() as *const i8,
116+
item: field.name.as_ptr() as *const ::core::ffi::c_char,
117+
value: field.value.as_ptr() as *const ::core::ffi::c_char,
118118
..Default::default()
119119
};
120120
tag_value_array.push(val);

ledger_device_sdk/src/nbgl/nbgl_streaming_review.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ impl NbglStreamingReview {
218218
let mut tag_value_array: Vec<nbgl_contentTagValue_t> = Vec::new();
219219
for field in v.iter() {
220220
let val = nbgl_contentTagValue_t {
221-
item: field.name.as_ptr() as *const i8,
222-
value: field.value.as_ptr() as *const i8,
221+
item: field.name.as_ptr() as *const ::core::ffi::c_char,
222+
value: field.value.as_ptr() as *const ::core::ffi::c_char,
223223
..Default::default()
224224
};
225225
tag_value_array.push(val);

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "nightly-2024-12-01"
2+
channel = "nightly"

0 commit comments

Comments
 (0)