@@ -454,10 +454,7 @@ impl SqliteStore {
454454 /// - `metadata_key_prefix`: when set, only deserialize metadata for nodes whose raw
455455 /// metadata contains this prefix; other nodes get an empty map. Also skips loading
456456 /// signature, doc_comment, and snippet columns.
457- pub fn load_with_edge_filter (
458- & self ,
459- edge_kinds : Option < & [ EdgeKind ] > ,
460- ) -> anyhow:: Result < Graph > {
457+ pub fn load_with_edge_filter ( & self , edge_kinds : Option < & [ EdgeKind ] > ) -> anyhow:: Result < Graph > {
461458 self . load_filtered ( edge_kinds, None )
462459 }
463460
@@ -1825,10 +1822,12 @@ mod tests {
18251822 2 ,
18261823 "only Contains and TypeRef edges should be loaded"
18271824 ) ;
1828- assert ! ( filtered. edges. iter( ) . all( |e| matches!(
1829- e. kind,
1830- EdgeKind :: Contains | EdgeKind :: TypeRef
1831- ) ) ) ;
1825+ assert ! (
1826+ filtered
1827+ . edges
1828+ . iter( )
1829+ . all( |e| matches!( e. kind, EdgeKind :: Contains | EdgeKind :: TypeRef ) )
1830+ ) ;
18321831 }
18331832
18341833 #[ test]
@@ -1883,9 +1882,7 @@ mod tests {
18831882
18841883 store. save ( & graph) . unwrap ( ) ;
18851884
1886- let slim = store
1887- . load_filtered ( None , Some ( "l10n." ) )
1888- . unwrap ( ) ;
1885+ let slim = store. load_filtered ( None , Some ( "l10n." ) ) . unwrap ( ) ;
18891886 assert_eq ! ( slim. nodes. len( ) , 2 , "all nodes should be loaded" ) ;
18901887
18911888 let l10n_node = slim. nodes . iter ( ) . find ( |n| n. id == "a" ) . unwrap ( ) ;
0 commit comments