mirror of
https://github.com/katanemo/plano.git
synced 2026-05-11 16:52:41 +02:00
cargo clippy (#660)
This commit is contained in:
parent
c75e7606f9
commit
ca95ffb63d
62 changed files with 1864 additions and 1187 deletions
|
|
@ -161,13 +161,12 @@ impl TraceData {
|
|||
}
|
||||
|
||||
pub fn new_with_service_name(service_name: String) -> Self {
|
||||
let mut resource_attributes = Vec::new();
|
||||
resource_attributes.push(Attribute {
|
||||
let resource_attributes = vec![Attribute {
|
||||
key: "service.name".to_string(),
|
||||
value: AttributeValue {
|
||||
string_value: Some(service_name),
|
||||
},
|
||||
});
|
||||
}];
|
||||
|
||||
let resource = Resource {
|
||||
attributes: resource_attributes,
|
||||
|
|
@ -194,7 +193,9 @@ impl TraceData {
|
|||
|
||||
pub fn add_span(&mut self, span: Span) {
|
||||
if self.resource_spans.is_empty() {
|
||||
let resource = Resource { attributes: Vec::new() };
|
||||
let resource = Resource {
|
||||
attributes: Vec::new(),
|
||||
};
|
||||
let scope_span = ScopeSpan {
|
||||
scope: Scope {
|
||||
name: "default".to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue