mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
95384d94c1
commit
19ff321dd3
1 changed files with 2 additions and 2 deletions
|
|
@ -2,12 +2,12 @@ use mlua::AnyUserData;
|
||||||
|
|
||||||
use super::SCOPE;
|
use super::SCOPE;
|
||||||
|
|
||||||
pub(super) struct Iter<I: Iterator<Item = T>, T: 'static> {
|
pub(super) struct Iter<I: Iterator<Item = T>, T> {
|
||||||
inner: I,
|
inner: I,
|
||||||
count: usize,
|
count: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<I: Iterator<Item = T> + 'static, T> Iter<I, T> {
|
impl<I: Iterator<Item = T> + 'static, T: 'static> Iter<I, T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub(super) fn make(inner: I) -> mlua::Result<AnyUserData<'static>> {
|
pub(super) fn make(inner: I) -> mlua::Result<AnyUserData<'static>> {
|
||||||
SCOPE.create_any_userdata(Self { inner, count: 0 })
|
SCOPE.create_any_userdata(Self { inner, count: 0 })
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue