PLC-lang / rusty

Structured Text Parser and LLVM Frontend
GNU Lesser General Public License v3.0
181 stars 47 forks source link

refactor: Implement From<&SourceLocation> #1197

Closed volsa closed 1 month ago

volsa commented 1 month ago

Delegates clone() calls into the From<&SourceLocation> implementation rather than have them in the caller. Specifically code like with_location(location.clone()) can now be rewritten into with_location(location).