Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3366034
D8889.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8889.diff
View Options
diff --git a/services/comm-services-lib/src/blob/client.rs b/services/comm-services-lib/src/blob/client.rs
--- a/services/comm-services-lib/src/blob/client.rs
+++ b/services/comm-services-lib/src/blob/client.rs
@@ -71,7 +71,7 @@
/// - [BlobServiceError::InvalidArguments] if blob hash has incorrect format
///
/// # Example
- /// ```rust
+ /// ```ignore
/// let client =
/// BlobServiceClient::new("http://localhost:50053".parse()?);
///
@@ -181,7 +181,7 @@
/// already exists.
///
/// # Example
- /// ```rust
+ /// ```ignore
/// use std::io::{Error, ErrorKind};
///
/// let client =
diff --git a/services/comm-services-lib/src/database.rs b/services/comm-services-lib/src/database.rs
--- a/services/comm-services-lib/src/database.rs
+++ b/services/comm-services-lib/src/database.rs
@@ -82,13 +82,14 @@
/// Conversion trait for [`AttributeValue`]
///
/// Types implementing this trait are able to do the following:
-/// ```rust
+/// ```ignore
/// use comm_services_lib::database::{TryFromAttribute, AttributeTryInto};
///
-/// let foo = SomeType::try_from_attr("MyAttribute", Some(attribute));
+/// let foo = SomeType::try_from_attr("MyAttribute", Some(attribute))?;
///
/// // if `AttributeTryInto` is imported, also:
-/// let bar = Some(attribute).attr_try_into("MyAttribute");
+/// let bar = Some(attribute).attr_try_into("MyAttribute")?;
+/// ```
pub trait TryFromAttribute: Sized {
fn try_from_attr(
attribute_name: impl Into<String>,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 9:12 AM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2584113
Default Alt Text
D8889.diff (1 KB)
Attached To
Mode
D8889: [comm-services-lib] Fix doctests
Attached
Detach File
Event Timeline
Log In to Comment