mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
chore: fix clippy
This commit is contained in:
@@ -30,7 +30,7 @@ fn list_gpus(_: &Args, client: &DaemonClient) -> Result<()> {
|
||||
}
|
||||
|
||||
fn info(args: &Args, client: &DaemonClient) -> Result<()> {
|
||||
for id in args.gpu_ids(&client) {
|
||||
for id in args.gpu_ids(client) {
|
||||
let info_buffer = client.get_device_info(&id)?;
|
||||
let info = info_buffer.inner()?;
|
||||
let pci_info = info.pci_info.context("GPU reports no pci info")?;
|
||||
|
||||
@@ -82,15 +82,12 @@ mod tests {
|
||||
fn vec() {
|
||||
let response = unsafe {
|
||||
run_forked(|| {
|
||||
let mut data = Vec::new();
|
||||
data.push("hello".to_owned());
|
||||
data.push("world".to_owned());
|
||||
data.push("123".to_owned());
|
||||
let data = ["hello", "world", "123"].map(str::to_owned);
|
||||
Ok(data)
|
||||
})
|
||||
.unwrap()
|
||||
};
|
||||
assert_eq!(response, vec!["hello", "world", "123"])
|
||||
assert_eq!(response, ["hello", "world", "123"])
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user