Skip to content

belt-ctr: use type alias to define BeltCtr#112

Merged
newpavlov merged 3 commits into
masterfrom
belt-ctr/type_aliases
Apr 10, 2026
Merged

belt-ctr: use type alias to define BeltCtr#112
newpavlov merged 3 commits into
masterfrom
belt-ctr/type_aliases

Conversation

@newpavlov
Copy link
Copy Markdown
Member

@newpavlov newpavlov commented Apr 10, 2026

Unfortunately, type defaults used previously are not handled well in the current Rust. For example, it could be seen in the readme example where we can not use let mut cipher = BeltCtr::new_from_slices(key, iv)?; and instead have to use either let mut cipher: BeltCtr = BeltCtr::new_from_slices(key, iv)?; or <BeltCtr>::new_from_slices.

@newpavlov newpavlov merged commit 504f0a6 into master Apr 10, 2026
12 checks passed
@newpavlov newpavlov deleted the belt-ctr/type_aliases branch April 10, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant