(&self)
| 117 | |
| 118 | impl Config { |
| 119 | pub fn globset(&self) -> Result<GlobSet, String> { |
| 120 | let mut globs = GlobSetBuilder::new(); |
| 121 | for glob in &self.excludes { |
| 122 | globs.add(Glob::new(glob).map_err(|e| e.to_string())?); |
| 123 | } |
| 124 | globs.build().map_err(|e| e.to_string()) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | #[test] |
no outgoing calls