zlgcan 0.2.1b0__tar.gz → 0.2.1b1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,9 +74,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
74
74
 
75
75
  [[package]]
76
76
  name = "indexmap"
77
- version = "2.9.0"
77
+ version = "2.10.0"
78
78
  source = "registry+https://github.com/rust-lang/crates.io-index"
79
- checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e"
79
+ checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661"
80
80
  dependencies = [
81
81
  "equivalent",
82
82
  "hashbrown",
@@ -357,7 +357,7 @@ dependencies = [
357
357
 
358
358
  [[package]]
359
359
  name = "zlgcan-driver"
360
- version = "0.2.1-beta"
360
+ version = "0.2.1-beta1"
361
361
  dependencies = [
362
362
  "anyhow",
363
363
  "pyo3",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "zlgcan-driver"
3
- version = "0.2.1-beta"
3
+ version = "0.2.1-beta1"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zlgcan
3
- Version: 0.2.1b0
3
+ Version: 0.2.1b1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -25,6 +25,8 @@ fn zlgcan_init_can(
25
25
  cfgs: Vec<ZCanChlCfgPy>,
26
26
  derive_info: Option<ZDeriveInfoPy>,
27
27
  ) -> PyResult<ZCanDriverWrap> {
28
+ let dev_type = ZCanDeviceType::try_from(dev_type)
29
+ .map_err(|e| exceptions::PyValueError::new_err(e.to_string()))?;
28
30
  let mut builder = DeviceBuilder::new();
29
31
  builder
30
32
  .add_other(LIBPATH, Box::new(libpath))
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes