Skip to content

Commit

Permalink
Merge pull request #2 from ariady-putra/main
Browse files Browse the repository at this point in the history
helium
  • Loading branch information
ariady-putra authored Jan 15, 2025
2 parents 38b5106 + 3fd7bc0 commit 4294cc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/test_kit.ak
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ pub type Any =
Data

/// A convenient way of upcasting any serialisable type to `Data`
/// instead of doing `let data: Data = any`
pub fn to_data(any: Any) -> Data {
let data: Data = any
/// instead of doing `let data: Data = from`
pub fn to_data(from: Any) -> Data {
let data: Data = from
data
}

Expand Down

0 comments on commit 4294cc7

Please sign in to comment.