Lines Matching refs:ok
57 root, ok := content.(map[string]interface{})
58 if !ok {
61 if _, ok = root["crates"]; !ok {
64 crates, ok := root["crates"].([]interface{})
65 if !ok {
73 c, ok := crate.(map[string]interface{})
74 if !ok {
84 deps, ok := crate["deps"].([]interface{})
85 if !ok {
89 d, ok := dep.(map[string]interface{})
90 if !ok {
93 name, ok := d["name"].(string)
94 if !ok {
133 cfgs, ok := crate["cfg"].([]interface{})
134 if !ok {
140 cfg, ok := cfg.(string)
141 if !ok {
167 rootModule, ok := crate["root_module"].(string)
168 if !ok {
210 rootModule, ok := crate["root_module"].(string)
211 if !ok {
242 env, ok := crate["env"].(map[string]interface{})
243 if !ok {
246 if _, ok = env["OUT_DIR"]; !ok {
277 rootModule, ok := crate["root_module"].(string)
278 if !ok {