Skip to content

Commit 8f547fb

Browse files
committed
fix nits
1 parent 06e5abf commit 8f547fb

File tree

3 files changed

+29
-22
lines changed

3 files changed

+29
-22
lines changed

Cargo.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mitmproxy-rs/mitmproxy_rs/contentviews.pyi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
from typing import ClassVar, final
1+
from __future__ import annotations
2+
3+
from typing import ClassVar, final, Literal
24

35
class Contentview:
46
name: ClassVar[str]
57

8+
syntax_highlight: ClassVar[Literal["xml", "yaml", "none", "error"]]
9+
610
def prettify(self, data: bytes, metadata) -> str:
711
pass
812

13+
def render_priority(self, data: bytes, metadata) -> float:
14+
pass
15+
916
@final
1017
class InteractiveContentview(Contentview):
1118
def reencode(self, data: str, metadata) -> bytes:

src/contentviews/protobuf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ enum GuessedFieldType {
5252

5353
impl Prettify for Protobuf {
5454
fn name(&self) -> &str {
55-
"Protocol Buffer"
55+
"Protobuf"
5656
}
5757

5858
fn syntax_highlight(&self) -> Language {

0 commit comments

Comments
 (0)