]> Repositorios git - scryer-prolog.git/commit
clippy: change ToString impl to Display
authorBennet Bleßmann <[email protected]>
Sat, 6 Jul 2024 11:28:44 +0000 (13:28 +0200)
committerBennet Bleßmann <[email protected]>
Sat, 6 Jul 2024 11:32:58 +0000 (13:32 +0200)
commit6386e70584788be025a5f9be20e77c43b3c557e8
tree9eb2fed08b6c516fa9ba5109b6082638dbaae7cb
parent722975d77e9057608ddc3611bdc288d0236030ec
clippy: change ToString impl to Display

- write directly to formatter, eliminating intermediate String allocations
- take Value by reference eliminating clones
- remove trim() called on the result of  QueryResolution::to_string
    - we only  emit "true", "false", or "[<resolutions>]"
      neither of which contains trailing or leading withespace,
      so the calls was effectively a noop
src/machine/parsed_results.rs