Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Aug 30, 2024
1 parent 2fdc485 commit 161a1fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ rhio does not offer any direct APIs to subscribe to message streams. To consume

### Installation and running

1. Launch `rhio` node:
1. Launch `rhio` node
```bash
# Run with default configurations
cargo run
Expand Down
4 changes: 2 additions & 2 deletions rhio/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub fn setup_tracing(filter: Option<String>) {
let builder = EnvFilter::builder().with_default_directive(default);

let filter = if let Some(filter) = filter {
if filter.starts_with("=") {
filter[1..].to_string()
if let Some(all_targets_level) = filter.strip_prefix("=") {
all_targets_level.to_string()
} else {
match Level::from_str(&filter) {
Ok(level) => format!("rhio={level}"),
Expand Down

0 comments on commit 161a1fc

Please sign in to comment.