...
 
Commits (2)
This diff is collapsed.
......@@ -2,6 +2,7 @@
name = "pbvi"
version = "0.1.0"
authors = ["Phil Booth <[email protected]>"]
edition = "2018"
[dependencies]
lazy_static = "1"
......
......@@ -22,7 +22,7 @@ use std::sync::Arc;
use parking_lot::{RwLock, RwLockReadGuard};
use tokens::{Token, TokenArena, TokenId};
use crate::tokens::{Token, TokenArena, TokenId};
macro_rules! simple_move {
($self:ident, $delta:ident, $id:expr, $index:ident, $move_absolute:ident) => {
......
......@@ -16,7 +16,7 @@
// pbvi. If not, see <https://www.gnu.org/licenses/>.
use super::*;
use tokens::parse;
use crate::tokens::parse;
#[test]
fn grapheme_index() {
......
......@@ -15,13 +15,6 @@
// You should have received a copy of the GNU General Public License along with
// pbvi. If not, see <https://www.gnu.org/licenses/>.
#[macro_use]
extern crate lazy_static;
extern crate parking_lot;
extern crate regex;
extern crate unicode_bom;
extern crate unicode_segmentation;
mod cursor;
mod file;
mod tokens;
......
......@@ -31,8 +31,8 @@ use std::{
sync::Arc,
};
use lazy_static::lazy_static;
use parking_lot::{RwLock, RwLockReadGuard};
use regex::Regex;
pub use self::{arena::TokenArena, iterator::TokenIterator};
......
......@@ -19,6 +19,7 @@ mod lines_with_endings;
use std::sync::Arc;
use lazy_static::lazy_static;
use parking_lot::RwLock;
use regex::Regex;
use unicode_segmentation::UnicodeSegmentation;
......