Skip to content

Commit

Permalink
ci: run the test job (#41)
Browse files Browse the repository at this point in the history
* ci: run the test job

* ci: update rust

* fmt
  • Loading branch information
goto-bus-stop authored Aug 12, 2024
1 parent 42d70eb commit 93b65c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
environment:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
docker:
- image: cimg/rust:1.57.0
- image: cimg/rust:1.76.0
steps:
- checkout
- restore_cache:
Expand All @@ -26,6 +26,10 @@ jobs:
- target/

workflows:
test:
jobs:
- build:
name: Tests
security-scans:
jobs:
- secops/gitleaks:
Expand Down
4 changes: 1 addition & 3 deletions test-span/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ impl LogsRecorder {
pub fn all_records_for_filter(&self, filter: &crate::Filter) -> Vec<Record> {
self.recorders
.iter()
.filter(|(log_metadata, _recorders)| {
filter.is_enabled(log_metadata)
})
.filter(|(log_metadata, _recorders)| filter.is_enabled(log_metadata))
.flat_map(|(_log_metadata, recorders)| recorders.contents().cloned())
.collect()
}
Expand Down
4 changes: 1 addition & 3 deletions test-span/src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ impl Report {

pub fn spans(&self, filter: &Filter) -> Span {
if let Some(recorder) = self.spans.get(&self.root_id) {
let metadata = recorder
.metadata()
.expect("recorder without metadata");
let metadata = recorder.metadata().expect("recorder without metadata");
let span_name = format!("{}::{}", metadata.target, metadata.name);

let mut root_span = Span::from(span_name, self.root_id, recorder.contents(filter));
Expand Down

0 comments on commit 93b65c2

Please sign in to comment.