-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
环境:macos bigsur
rustc: rustc 1.55.0 (c8dfcfe04 2021-09-06)
cargo: cargo 1.55.0 (32da73ab1 2021-08-23)
执行命令: cargo install --force dcli
报错:
error[E0599]: no method named `insert_and_get` found for struct `DOMAINS` in the current scope
--> /Users/zhangxin/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/i18n-embed-fl-0.2.0/src/lib.rs:360:17
|
136 | / lazy_static::lazy_static! {
137 | | /// Cached data specific to each localization domain, to improve
138 | | /// performance of subsequent macro invokations.
139 | | static ref DOMAINS: dashmap::DashMap<String, DomainSpecificData> =
140 | | dashmap::DashMap::new();
141 | | }
| |_- method `insert_and_get` not found for this
...
360 | DOMAINS.insert_and_get(domain.clone(), data)
| ^^^^^^^^^^^^^^ method not found in `DOMAINS`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `i18n-embed-fl` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `dcli v0.0.7`, intermediate artifacts can be found at `/var/folders/g3/38kh1ntx0rn4xkglzn5_l20h0000gn/T/cargo-installJ3vBc1`
Metadata
Metadata
Assignees
Labels
No labels