Get the test to failing,,, correctly

This commit is contained in:
Mikayla Maki 2022-09-26 07:59:51 -07:00 committed by Julia
parent 6ac9308a03
commit c8e63d76a4
7 changed files with 68 additions and 34 deletions

View file

@ -2,13 +2,20 @@
pub mod test;
use futures::Future;
use lazy_static::lazy_static;
use std::{
cmp::Ordering,
ffi::OsStr,
ops::AddAssign,
pin::Pin,
task::{Context, Poll},
};
lazy_static! {
pub static ref DOT_GIT: &'static OsStr = OsStr::new(".git");
pub static ref GITIGNORE: &'static OsStr = OsStr::new(".gitignore");
}
pub fn truncate(s: &str, max_chars: usize) -> &str {
match s.char_indices().nth(max_chars) {
None => s,