Backport official GLib iterator safety fix for Linux desktop
This commit is contained in:
1 parent
43c43ebdc9
commit
8ef874c609
133 files changed
+55342
-2
No files matched your search
@@ -0,0 +1,15 @@
|
||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{prelude::*, DateTime};
|
||||
|
||||
#[test]
|
||||
fn test_value() {
|
||||
let dt1 = DateTime::now_utc().unwrap();
|
||||
let v = dt1.to_value();
|
||||
let dt2 = v.get::<&DateTime>().unwrap();
|
||||
|
||||
assert_eq!(dt1.as_ptr(), dt2.as_ptr());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user