Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/guidelines/libs/interop/M-IMPL-ASREF.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fn send_network(x: impl AsRef<[u8]>) {}

// Further analysis needed. In these cases the function wants
// ownership of some `String` or `Vec<u8>`. If those are
// "low freqency, low volume" functions `AsRef` has better ergonomics,
// "low frequency, low volume" functions `AsRef` has better ergonomics,
// otherwise accepting a `String` or `Vec<u8>` will have better
// performance.
fn new_instance(x: impl AsRef<str>) -> HoldsString {}
Expand Down
4 changes: 2 additions & 2 deletions src/guidelines/universal/M-LOG-STRUCTURED.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ Use hierarchical dot-notation: `<component>.<operation>.<state>`
event!(
Level::INFO,
file.path = file_path,
"file {{file.path}} processed succesfully",
"file {{file.path}} processed successfully",
);

// Good: Named events
event!(
name: "file.processing.success", // event identifier
Level::INFO,
file.path = file_path,
"file {{file.path}} processed succesfully",
"file {{file.path}} processed successfully",
);
```

Expand Down