chore: Bump Rust version to 1.80 (#15186)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-07-25 22:48:42 +02:00 committed by GitHub
parent f291677d40
commit 0d5de88c4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 43 additions and 67 deletions

View file

@ -31,7 +31,7 @@ impl From<HighlightId> for Highlight {
}
}
#[derive(Clone)]
#[derive(Clone, Default)]
pub struct RichText {
pub text: SharedString,
pub highlights: Vec<(Range<usize>, Highlight)>,
@ -43,19 +43,6 @@ pub struct RichText {
Option<Arc<dyn Fn(usize, Range<usize>, &mut WindowContext) -> Option<AnyView>>>,
}
impl Default for RichText {
fn default() -> Self {
Self {
text: SharedString::default(),
highlights: Vec::new(),
link_ranges: Vec::new(),
link_urls: Arc::from([]),
custom_ranges: Vec::new(),
custom_ranges_tooltip_fn: None,
}
}
}
/// Allows one to specify extra links to the rendered markdown, which can be used
/// for e.g. mentions.
#[derive(Debug)]