Commit Graph

523 Commits

Author SHA1 Message Date
Stephen Chung
58fad030ee Do not default compares of different types. 2023-03-08 21:47:57 +08:00
Stephen Chung
51581cdef5 Make Engine faster to create. 2023-02-25 19:57:19 +08:00
Stephen Chung
d0a47d7f66 Refactor to do more pre-calculation work. 2023-02-12 21:50:32 +08:00
Stephen Chung
557b368fdb Fix op-assignment hashes. 2023-02-11 15:06:17 +08:00
Stephen Chung
75718a5a8b Satisfy clippy. 2023-02-11 00:17:26 +08:00
Stephen Chung
c58fe87107 Fix error. 2023-02-10 23:51:22 +08:00
Stephen Chung
47f18f0ba7
Merge pull request #688 from Mathieu-Lala/fix/lint
Fix lints warnings and enhance the CI
2023-02-10 18:32:14 +08:00
Mathieu Lala
3523941fee
fix<doc>: rename _item for item 2023-02-10 11:04:14 +01:00
Mathieu Lala
8e5b280d8a
fix<doc>: rename _unit for unit 2023-02-09 19:03:02 +01:00
Stephen Chung
777f3e219a Add max/min. 2023-02-09 22:09:16 +08:00
Mathieu Lala
9bdf3c290d
pull main & udpate lint 2023-02-05 17:59:02 +01:00
Mathieu Lala
097fa1f4e3
Merge branch 'main' of github.com:Mathieu-Lala/rhai into fix/lint 2023-02-05 17:18:45 +01:00
Stephen Chung
ae02668d08 Mark pure. 2023-01-03 14:00:18 +08:00
Mathieu Lala
9af5b1c78e
fix: default clippy lints 2022-12-30 18:07:39 +01:00
Stephen Chung
ee8e745429 Change fold to for. 2022-12-29 17:51:27 +08:00
Stephen Chung
7c00b74916 Allow string interpolation to work with no packages. 2022-12-27 10:09:40 +08:00
Stephen Chung
c5cb2d5e0f Simplify Array::pad. 2022-12-26 17:32:46 +08:00
Stephen Chung
52d23522e6 Add for_each for arrays. 2022-12-25 12:44:49 +08:00
Stephen Chung
fd401f3048 Add array API with closure variation that binds to this. 2022-12-24 19:37:06 +08:00
Stephen Chung
80ccd75514 Satisfy clippy. 2022-12-22 17:34:58 +08:00
Stephen Chung
d94f362b51 Fix up find/find_map. 2022-12-20 22:27:29 +08:00
Stephen Chung
6e40215631 Merge branch 'main' of https://github.com/rhaiscript/rhai 2022-12-20 22:19:11 +08:00
Fabrizio Sestito
06b40723e4
Add array find and find_map methods 2022-12-20 13:28:24 +01:00
Stephen Chung
99080be91d Move to FnPtr. 2022-12-20 14:43:30 +08:00
Stephen Chung
cabab14475 Deprecate array methods that take function names as parameters. 2022-12-19 22:42:21 +08:00
Stephen Chung
b880893154 Allow negative shift bits. 2022-12-18 14:51:38 +08:00
Stephen Chung
2c55c248fb Fix builds. 2022-12-11 17:18:14 +08:00
Stephen Chung
1f815f995f Speed up FnPtr::call when there is a linked scripted function. 2022-12-11 16:55:30 +08:00
Stephen Chung
30ff208104 Improve reify! syntax. 2022-12-09 16:41:01 +08:00
Stephen Chung
55922b5c20 Hard code constant checking. 2022-12-03 16:20:13 +08:00
Stephen Chung
0c4935febb Merge multiple doc-comment lines into one. 2022-12-01 14:35:45 +08:00
Stephen Chung
28640a6fe4 code cleanup. 2022-12-01 14:24:08 +08:00
Stephen Chung
e8e1706d98 Use as_deref(). 2022-11-25 23:03:20 +08:00
Stephen Chung
6600862c22 Satisfy clippy. 2022-11-25 09:46:13 +08:00
Stephen Chung
2bf8e610a3 Reduce size of Engine. 2022-11-24 22:58:42 +08:00
Stephen Chung
bda8c2b636 Reduce data sizes. 2022-11-24 20:35:56 +08:00
Stephen Chung
d1913edf3c Use Engine's interner. 2022-11-24 15:10:17 +08:00
Stephen Chung
6791ef64da Remove crate:: from types. 2022-11-24 11:00:47 +08:00
Stephen Chung
3e7408511e Satisfy more clippy. 2022-11-23 16:14:11 +08:00
Stephen Chung
4e27039521 Use bitflags. 2022-11-23 11:36:30 +08:00
Stephen Chung
d911327242 Use SmartString for buffers and literal_syntax can panic. 2022-11-22 23:30:43 +08:00
Stephen Chung
d151c87687 Change call_fn_raw to call_fn_with_options. 2022-11-21 23:42:29 +08:00
Stephen Chung
ce046422f0 Add Dynamic::is_XXX API. 2022-11-09 12:44:57 +08:00
Stephen Chung
ad018aaae3 Move FloatWrapper into types. 2022-11-08 23:17:31 +08:00
Stephen Chung
e93923b3b6 Move level into GlobalRuntimeState. 2022-11-08 21:28:20 +08:00
Stephen Chung
6053aa1641 Clean up types. 2022-11-08 15:01:40 +08:00
Stephen Chung
91415b9750 Use ImmutableString in more places. 2022-10-29 14:59:20 +08:00
Stephen Chung
4100e6da64 Use ImmutableString for source. 2022-10-29 14:12:18 +08:00
Stephen Chung
6af66d3ed3 Code cleanup. 2022-10-29 10:40:07 +08:00
Stephen Chung
6ce1dae110 Simplify integer bits iterator. 2022-10-29 10:27:39 +08:00