mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 18:43:01 +00:00
refactor: Remove unnecessary Arc
This commit is contained in:
parent
7edfeb9674
commit
b5eedad8e3
11 changed files with 22 additions and 26 deletions
|
|
@ -276,8 +276,8 @@ impl Crate {
|
|||
doc_url.map(|s| s.trim_matches('"').trim_end_matches('/').to_owned() + "/")
|
||||
}
|
||||
|
||||
pub fn cfg(&self, db: &dyn HirDatabase) -> Arc<CfgOptions> {
|
||||
Arc::clone(self.id.cfg_options(db))
|
||||
pub fn cfg<'db>(&self, db: &'db dyn HirDatabase) -> &'db CfgOptions {
|
||||
self.id.cfg_options(db)
|
||||
}
|
||||
|
||||
pub fn potential_cfg<'db>(&self, db: &'db dyn HirDatabase) -> &'db CfgOptions {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue