Adanos020 / egui_dock

Docking support for egui – an immediate-mode GUI library for Rust
MIT License
458 stars 75 forks source link

Remove `Clone` bound on `map_tabs` and `filter_map_tabs` #241

Closed Ved-s closed 4 months ago

Ved-s commented 5 months ago

No point of having a FnMut if it can't mutably reference stuff outside

Ved-s commented 5 months ago

I noticed you haven't applied it to {DockState,Surface,Tree}::{filter_tabs,retain_tabs} and {Surface,Tree}::map_tabs, is there a particular reason for this?

I guess i just removed it from the stuff i used and didn't check for other instances of it. Fixed