diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-31 16:06:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-31 16:47:00 +0100 |
| commit | 20b1a38414101f842a6d9201133a5aaaa45a7cec (patch) | |
| tree | 2365453d4dfdebfa11d618baad1a36c65b62d7c7 /src/parse/mod.rs | |
| parent | fa57d86ed981373b66804972147bf59cab920e6b (diff) | |
Switch from `Rc` to `Arc`
Diffstat (limited to 'src/parse/mod.rs')
| -rw-r--r-- | src/parse/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 38a08ab8..fbace15b 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -12,14 +12,14 @@ pub use resolve::*; pub use scanner::*; pub use tokens::*; -use std::rc::Rc; +use std::sync::Arc; use crate::syntax::ast::{Associativity, BinOp, UnOp}; use crate::syntax::{ErrorPos, Green, GreenNode, NodeKind}; use crate::util::EcoString; /// Parse a source file. -pub fn parse(src: &str) -> Rc<GreenNode> { +pub fn parse(src: &str) -> Arc<GreenNode> { let mut p = Parser::new(src, TokenMode::Markup); markup(&mut p, true); match p.finish().into_iter().next() { |
