Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

Pin insert tests import their names (a glob import loops gpui's test macro)

gelenmedyab44a76d0213f
diff --git a/crates/rf-app/src/workspace.rs b/crates/rf-app/src/workspace.rs
index ac842108..978eb481 100644
--- a/crates/rf-app/src/workspace.rs
+++ b/crates/rf-app/src/workspace.rs
@@ -5584,7 +5584,9 @@ fn pins_with_inserted(pins: &[PathBuf], dirs: &[PathBuf], at: &Path, after: bool
#[cfg(test)]
mod pin_insert_tests {
- use super::*;
+ // (not `use super::*`: that brings gpui's `test` attribute into scope and #[test] expands into itself)
+ use super::{pin_insert_zone, pins_with_inserted};
+ use std::path::PathBuf;
fn p(s: &str) -> PathBuf {
PathBuf::from(s)