1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-09-16 08:26:28 +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 b18b78e5c4
commit a174f36106

View File

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