mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
Add syntax highlighing feature to egui_extras (#3333)
* Add syntax highlighing feature to egui_extras Enable "syntect" feature for great syntax highlighting of any language. If not a simple fallback is used that works fine for C++, Rust, Python * Check --no-default-features of egui_extras on CI * spelling * Fix building egui_extras without additional features
This commit is contained in:
@@ -10,11 +10,11 @@ impl DefaultBytesLoader {
|
||||
self.cache
|
||||
.lock()
|
||||
.entry(uri.into())
|
||||
.or_insert_with_key(|uri| {
|
||||
.or_insert_with_key(|_uri| {
|
||||
let bytes: Bytes = bytes.into();
|
||||
|
||||
#[cfg(feature = "log")]
|
||||
log::trace!("loaded {} bytes for uri {uri:?}", bytes.len());
|
||||
log::trace!("loaded {} bytes for uri {_uri:?}", bytes.len());
|
||||
|
||||
bytes
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user