You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
embed-nu/src/utils.rs

12 lines
156 B
Rust

use nu_protocol::Span;
pub trait SpanEmpty {
fn empty() -> Self;
}
impl SpanEmpty for Span {
fn empty() -> Self {
Span::new(0, 0)
}
}