optimize add

This commit is contained in:
grimhilt
2023-06-16 23:22:18 +02:00
parent cbbf185b1a
commit 7a34b3c79b
4 changed files with 21 additions and 13 deletions

View File

@@ -3,7 +3,7 @@ use regex::Regex;
use std::fs::File;
use std::io::{Cursor, BufReader, BufRead};
fn read_lines() -> Result<Vec<String>, ()> {
pub fn read_lines() -> Result<Vec<String>, ()> {
if let Some(path) = path::nextsyncignore() {
let file = match File::open(path) {
Ok(buffer) => buffer,