Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Merge branch 'main' into storybook
Nathan Sobo37ef28a3bf3d
diff --cc crates/util/src/util.rsindex 858f6074339,785426ed4c7..3f83f8e37a5--- a/crates/util/src/util.rs+++ b/crates/util/src/util.rs@@@ -264,12 -256,14 +264,15 @@@ impl<F: FnOnce()> Drop for Deferred<F>}}-pub fn defer<F: FnOnce()>(f: F) -> impl Drop {- Defer(Some(f))+/// Run the given function when the returned value is dropped (unless it's cancelled).+pub fn defer<F: FnOnce()>(f: F) -> Deferred<F> {+ Deferred(Some(f))}- pub struct RandomCharIter<T: Rng>(T);+ pub struct RandomCharIter<T: Rng> {+ rng: T,+ simple_text: bool,+ }impl<T: Rng> RandomCharIter<T> {pub fn new(rng: T) -> Self {