1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-11-23 21:54:45 +02:00

globset: make GlobSet::empty const

Closes #3098
This commit is contained in:
David Tolnay
2025-07-07 22:31:11 -07:00
committed by Andrew Gallant
parent c007d89145
commit 33b44812c0

View File

@@ -322,7 +322,7 @@ impl GlobSet {
/// Create an empty `GlobSet`. An empty set matches nothing. /// Create an empty `GlobSet`. An empty set matches nothing.
#[inline] #[inline]
pub fn empty() -> GlobSet { pub const fn empty() -> GlobSet {
GlobSet { len: 0, strats: vec![] } GlobSet { len: 0, strats: vec![] }
} }