rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.67k stars 384 forks source link

Repository::stash_foreach: accepting a non-mutable reference to repository #884

Open xitep opened 1 year ago

xitep commented 1 year ago

Why is it that Repository::stash_foreach requires a mutable reference to the repository? Couldn't it be a non-mutable one?