-
Couldn't load subscription status.
- Fork 17
Fix: h2 tls #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix: h2 tls #57
Changes from all commits
907c046
4059626
712e067
df6e386
786ffd3
8accfc7
74b0db2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -262,7 +262,7 @@ pub const ENCODE_TABLE: [(usize, u64); 257] = [ | |
| ]; | ||
|
|
||
| // (next-state, byte, flags) | ||
| pub const DECODE_TABLE: [[(usize, u8, u8); 16]; 256] = [ | ||
| pub static DECODE_TABLE: [[(usize, u8, u8); 16]; 256] = [ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we won't change it, put it in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. large array defined as const this is my editor's warning, you can change it back. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great! I did some research and you are right. const CONST_ARRAY: [u8; 2] = [1, 2];
static STATIC_ARRAY: [u8; 2] = [1, 2];
static mut STATIC_MUT_ARRAY: [u8; 2] = [1, 2];I wrote a demo, and There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for your detailed research! 😊 |
||
| // 0 | ||
| [ | ||
| (4, 0, 0x00), | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,7 +108,7 @@ fn test_story(story: Value) { | |
| }) | ||
| .collect(); | ||
|
|
||
| encoder.encode(&mut input.clone().into_iter(), &mut buf); | ||
| encoder.encode(input.clone().into_iter(), &mut buf); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the difference here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the borrowed expression implements the required traits a clippy warning, you can change it back. |
||
|
|
||
| decoder | ||
| .decode(&mut Cursor::new(&mut buf), |e| { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain it? And if you meant to delete, please not use comment.