Skip to content

Commit

Permalink
build: add into_iter inst_fn to iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
LEXUGE committed Sep 21, 2022
1 parent 579280d commit 7f2821e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions droute/src/router/script/rune_scripting/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,14 @@ pub static TYPES_MODULE: Lazy<Module> = Lazy::new(|| {
m.ty::<OptRecordsIter>().unwrap();
m.inst_fn(Protocol::INTO_ITER, OptRecordsIter::into_iterator)
.unwrap();
m.inst_fn("into_iter", OptRecordsIter::into_iterator)
.unwrap();

m.ty::<DnsRecordsIter>().unwrap();
m.inst_fn(Protocol::INTO_ITER, DnsRecordsIter::into_iterator)
.unwrap();
m.inst_fn("into_iter", DnsRecordsIter::into_iterator)
.unwrap();

// Other types
m.ty::<IpAddr>().unwrap();
Expand Down

0 comments on commit 7f2821e

Please sign in to comment.