Skip to content

Commit 5d2609b

Browse files
committed
fix more review nits
1 parent d6703c0 commit 5d2609b

4 files changed

Lines changed: 2 additions & 84 deletions

File tree

mitmproxy-contentviews/src/protobuf/test.proto

Lines changed: 0 additions & 5 deletions
This file was deleted.

mitmproxy-contentviews/src/protobuf/view_grpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl Prettify for GRPC {
3131
};
3232
let len = match data.get(1..5) {
3333
Some(x) => u32::from_be_bytes(x.try_into()?) as usize,
34-
_ => bail!("invalid gRPC: first byte is not a boolean"),
34+
_ => bail!("invalid gRPC: not enough bytes"),
3535
};
3636
let Some(proto) = data.get(5..5 + len) else {
3737
bail!("Invalid gRPC: not enough data")

mitmproxy-contentviews/testdata/protobuf/grpcbin.proto

Lines changed: 0 additions & 77 deletions
This file was deleted.

mitmproxy-rs/src/syntax_highlight.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use pyo3::{exceptions::PyValueError, prelude::*};
1212
/// ```python
1313
/// from mitmproxy_rs.syntax_highlight import highlight
1414
/// highlighted = highlight("key: 42", "yaml")
15-
/// print(highlighted) # [('property', 'key'), ('', ': '), ('number', '42')]
15+
/// print(highlighted) # [('name', 'key'), ('', ': '), ('number', '42')]
1616
/// ```
1717
#[pyfunction]
1818
pub fn highlight(text: String, language: &str) -> PyResult<Vec<(&'static str, String)>> {

0 commit comments

Comments
 (0)