Closed desaikd closed 1 year ago
I think clippy was suggesting that you replace
foo != None
withfoo.is_some()
rather thanOption::is_some(&foo)
. I don't think it makes much difference though.
Yes, I have already changed according to clippy warnings in https://github.com/amzn/ion-schema-rust/pull/130/commits/02285169a1c986f3acbf0198b4dec90f4667ae4b so it seems to be good now.
Issue #9 #10
Description of changes: This PR works on adding implementation of
utf8_byte_length
constraint.Grammar:
Ion Schema specification: https://amzn.github.io/ion-schema/docs/isl-1-0/spec#utf8_byte_length
List of changes:
utf8_byte_length
constraint implementationUtf8ByteLength
enum variants forIslConstraint
andConstraint
Utf8ByteLengthConstraint
implementationsutf8 _byte_length
utf8_byte_length
Tests: added unit tests for
utf8_byte_length
implementation.utf8_byte_length
constraintutf8_byte_length
constraintutf8_byte_length
constraint