sway
sway copied to clipboard
Improve `Mapping::find_match` to return error when multiple replacements are possible.
The following code should return an error when multiple replacements can be done.
https://github.com/FuelLabs/sway/blob/71e9ea903e291f02c72c75c69cd078440bc9e4a0/sway-core/src/decl_engine/mapping.rs#L112-L119
[2023-09-02 20:31:07.388][INF][Px3657][Tx9cc3] Assistant::append_callback | ConnectionInfo {"details":{"adb":"/Applications/MAA.app/Contents/MacOS/adb","address":"127.0.0.1:5555","config":"CompatMac","uuid":"111111"},"uuid":"111111","what":"UuidGot","why":""}
[2023-09-02 20:31:07.440][INF][Px3657][Tx9cc3] Call ` /Applications/MAA.app/Contents/MacOS/adb -s 127.0.0.1:5555 shell dumpsys window displays | grep -o -E cur=+[^\ ]+ | grep -o -E [0-9]+ ` ret 0 , cost 51 ms , stdout size: 12 , socket size: 0
[2023-09-02 20:31:07.440][TRC][Px3657][Tx9cc3] stdout output:
1872
1170
[2023-09-13 17:58:20.341][INF][Pxd071][Tx85df] Assistant::append_callback | ConnectionInfo {"details":{"adb":"/Applications/MAA.app/Contents/MacOS/adb","address":"emulator-5554","config":"CompatMac","uuid":"111111"},"uuid":"111111","what":"UuidGot","why":""}
[2023-09-13 17:58:20.379][INF][Pxd071][Tx85df] Call ` /Applications/MAA.app/Contents/MacOS/adb -s emulator-5554 shell dumpsys window displays | grep -o -E cur=+[^\ ]+ | grep -o -E [0-9]+ ` ret 0 , cost 38 ms , stdout size: 12 , socket size: 0
[2023-09-13 17:58:20.379][TRC][Pxd071][Tx85df] stdout output:
1879
1174
[2023-09-13 18:20:05.388][INF][Px34f][Tx4d5b] Call ` /Applications/MAA.app/Contents/MacOS/adb -s emulator-5554 shell dumpsys window displays | grep -o -E cur=+[^\ ]+ | grep -o -E [0-9]+ ` ret 0 , cost 95 ms , stdout size: 10 , socket size: 0
[2023-09-13 18:20:05.389][TRC][Px34f][Tx4d5b] stdout output:
2729
1535
[2023-09-13 18:02:53.726][INF][Pxd4cf][Tx5f96] Assistant::append_callback | ConnectionInfo {"details":{"adb":"/Applications/MAA.app/Contents/MacOS/adb","address":"emulator-5554","config":"CompatMac","uuid":"111111"},"uuid":"111111","what":"UuidGot","why":""}
[2023-09-13 18:02:53.738][INF][Pxd4cf][Tx5f96] Call ` /Applications/MAA.app/Contents/MacOS/adb -s emulator-5554 shell dumpsys window displays | grep -o -E cur=+[^\ ]+ | grep -o -E [0-9]+ ` ret 0 , cost 11 ms , stdout size: 12 , socket size: 0
[2023-09-13 18:02:53.738][TRC][Pxd4cf][Tx5f96] stdout output:
3275
1842
不知道为什么获取到了一些很奇怪的分辨率。。难道 mac 上的模拟器是按窗口大小算的?
选择1270✘720 亮度显示拉到最高
"This issue has been inactive for a prolonged period and will be closed automatically in 3 days." "该问题已长时间处于闲置状态,3 天后将自动关闭。"