-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert all indents in
.rs
files from spaces to tabs
- Loading branch information
1 parent
15b5bd2
commit 7143969
Showing
6 changed files
with
32 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
use serde::Deserialize; | ||
|
||
|
||
#[derive(Debug, Default, PartialEq, Deserialize)] | ||
pub struct EncodingIdentifier { | ||
#[serde(rename = "@Radix")] | ||
radix: i8, | ||
#[serde(rename = "$text")] | ||
text: String, | ||
#[serde(rename = "@Radix")] | ||
radix: i8, | ||
#[serde(rename = "$text")] | ||
text: String, | ||
} | ||
|
||
#[derive(Debug, Default, PartialEq, Deserialize)] | ||
pub struct EncodingIdentifierMask { | ||
#[serde(rename = "@Radix")] | ||
radix: i8, | ||
#[serde(rename = "$text")] | ||
text: String, | ||
#[serde(rename = "@Radix")] | ||
radix: i8, | ||
#[serde(rename = "$text")] | ||
text: String, | ||
} | ||
|
||
#[derive(Debug, Default, PartialEq, Deserialize)] | ||
pub struct EncodingIdentifiers { | ||
#[serde(rename = "EncodingIdentifier")] | ||
identifier: Vec<EncodingIdentifier> | ||
identifier: Vec<EncodingIdentifier>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
mod decode; | ||
|
||
|
||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
let path: String = std::fs::read_to_string( | ||
format!("{}/spec/amdgpu_isa_rdna3.xml", env!("CARGO_MANIFEST_DIR")) | ||
)?; | ||
let path: String = std::fs::read_to_string( | ||
format!("{}/spec/amdgpu_isa_rdna3.xml", env!("CARGO_MANIFEST_DIR") | ||
))?; | ||
|
||
let spec: decode::Spec = quick_xml::de::from_str(path.as_str())?; | ||
|
||
println!("{:#?}", spec); | ||
|
||
return Ok(()); | ||
return Ok(()); | ||
} |