checkpoint

This commit is contained in:
John Smith
2022-11-26 22:18:55 -05:00
parent 503dbcf004
commit 07e3201e06
8 changed files with 147 additions and 26 deletions

View File

@@ -74,7 +74,7 @@ pub use std::net::{
pub use std::ops::{Fn, FnMut, FnOnce};
pub use std::pin::Pin;
pub use std::rc::Rc;
pub use std::string::String;
pub use std::string::{String, ToString};
pub use std::sync::atomic::{AtomicBool, Ordering};
pub use std::sync::{Arc, Weak};
pub use std::task;

View File

@@ -2,7 +2,7 @@
// Pass errors through and log them simultaneously via map_err()
// Also contains common log facilities (net, rpc, rtab, pstore, crypto, etc )
use alloc::string::{String, ToString};
use super::*;
pub fn map_to_string<X: ToString>(arg: X) -> String {
arg.to_string()

View File

@@ -1,6 +1,5 @@
use super::*;
use alloc::string::ToString;
use std::io;
use std::path::Path;
@@ -276,7 +275,7 @@ cfg_if::cfg_if! {
Ok(())
}
} else {
pub fn ensure_file_private_owner<P:AsRef<Path>>(_path: P) -> Result<(),String>
pub fn ensure_file_private_owner<P:AsRef<Path>>(_path: P) -> Result<(), String>
{
Ok(())
}