uv/crates/uv-git/src
Charlie Marsh 66a603b6c4
Use dynamic dispatch to simplify reporters (#10086)
## Summary

Sort of undecided on this. These are already stored as `dyn Reporter` in
each struct, so we're already using dynamic dispatch in that sense. But
all the methods take `impl Reporter`. This is sometimes nice (the
callsites are simpler?), but it also means that in practice, you often
_can't_ pass `None` to these methods that accept `Option<impl
Reporter>`, because Rust can't infer the generic type.

Anyway, this adds more consistency and simplifies the setup by using
`Arc<dyn Reporter>` everywhere.
2025-01-06 12:04:00 -05:00
..
credentials.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
git.rs Better error message when `git` is not found (#9206) 2024-11-18 12:41:22 -05:00
lib.rs Reuse the result of `which git` (#8224) 2024-10-15 13:50:43 -04:00
resolver.rs Use dynamic dispatch to simplify reporters (#10086) 2025-01-06 12:04:00 -05:00
sha.rs Remove separate test files in favor of same-file `mod tests` (#9199) 2024-11-18 20:11:46 +00:00
source.rs Use dynamic dispatch to simplify reporters (#10086) 2025-01-06 12:04:00 -05:00