fn append_rules(rules: &mut Rules, mut path: PathBuf) {
    rules.add_inclusion(
        GlobRule::new(path.join(r"**").to_str().expect("invalid unicode in path"))
            .expect("invalid glob rule format"),
    );

    loop {
        rules.add_inclusion(
            GlobRule::new(path.to_str().expect("invalid unicode in path"))
                .expect("invalid glob rule format"),
        );
        if !path.pop() {
            break;
        }
    }
}
// Attach rules for all sub paths for a path
Attach rules for all sub paths for a path
Attach rules for all sub paths for a path
fn append_rules(rules: &mut Rules, mut path: PathBuf) {
    rules.add_inclusion(
        GlobRule::new(path.join(r"**").to_str().expect("invalid unicode in path"))
            .expect("invalid glob rule format"),
    );
    loop {
        rules.add_inclusion(
            GlobRule::new(path.to_str().expect("invalid unicode in path"))
                .expect("invalid glob rule format"),
        );
        if !path.pop() {
            break;
        }
    }
}
fn append_rules ( rules : & mut Rules , mut path : PathBuf ) { rules . add_inclusion ( GlobRule :: new ( path . join ( r"**" ) . to_str ( ) . expect ( " " ) ) . expect ( " " ) , ) ; loop { rules . add_inclusion ( GlobRule :: new ( path . to_str ( ) . expect ( " " ) ) . expect ( " " ) , ) ; if ! path . pop ( ) { break ; } } }
Attach rules for all sub paths for a path
Attach rules for all sub paths for a path
rules
&mut Rules
path
PathBuf
rules
&mut Rules
path
PathBuf