mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 13:02:20 +00:00
Rename the legacy Graphene crate to document-legacy (#899)
* Rename /graphene to /document-legacy * Update names in code
This commit is contained in:
parent
5b3c015f71
commit
49b9b8cfec
95 changed files with 492 additions and 491 deletions
|
@ -11,8 +11,6 @@ use std::{
|
|||
};
|
||||
use storage_map::{StorageMap, StorageMapGuard};
|
||||
|
||||
use graphene_api::{DynamicInput, Node};
|
||||
|
||||
/// Caches the output of a given Node and acts as a proxy
|
||||
/// Automatically resets if it receives different input
|
||||
pub struct SmartCacheNode<'n, 'c, NODE: Node + 'c> {
|
||||
|
@ -30,9 +28,10 @@ where
|
|||
input.borrow().hash(&mut hasher);
|
||||
let hash = hasher.finish();
|
||||
|
||||
self.map.get_or_create_with(&hash, ||{
|
||||
self.map.get_or_create_with(&hash, || {
|
||||
trace!("Creating new cache node");
|
||||
CacheNode::new(self.node)})
|
||||
CacheNode::new(self.node)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue